S&P 500 index on course for worst week since September after sell-off in tech sector