U.S. stocks surged Tuesday, with the S&P 500 and Dow Jones Industrial Average closing at fresh record highs.