The Dow, S&P 500 and Nasdaq end lower after clawing back sharper losses in reaction to President Donald Trump's latest tariffs moves.