S&P 500 and Nasdaq Set New Records as Tech Gains Offset Oil Worries