US stocks end mixed; tariffs reflect positively on Nasdaq