S The S&P 500 and NASDAQ closed at record highs on Monday bolstered by a rise in oil and tech prices.