Stocks rallied on Thursday as investors digested fresh inflation data and new tariff announcements from President Trump.