US stocks climbed on Tuesday, with the S&P 500 and the Dow Jones reaching new highs as investors brushed off concerns about potential tariffs from President-elect Donald Trump.