President Trump is trying to rewire the global economic order with a flurry of on-again, off-again tariffs on goods imported from Canada, Mexico, China and elsewhere that he argues will boost U.S. factories and generate revenue.