A woman reacts as Republican presidential nominee Donald J. Trump greets the crowd.

The election of Donald Trump as U.S. president and Britain’s decision to leave the European Union have raised questions over the future of tariff-free trade and companies’ freedom to move production to lower-cost countries. “We want our country back” was the rallying cry of those backing Brexit, a sound bite that had echoes in Trump’s “Make America great again.”