Tech Stocks Surge as Energy Sector Drags S&P Down