The stock market continued to whipsaw on Trump tariff headlines, with Tesla, Nvidia and Palantir leading a Nasdaq rebound.