Trade rebounded slightly after President Trump’s sweeping global tariffs discouraged foreign countries from doing business with the United States, data released Thursday showed.