Stocks rallied Thursday despite data showing tariff tensions are still weighing on the global economy.