S&P 500 ends higher while Dow slips, tariff relief boosts tech stocks