Donald Trump’s anti-establishment campaign confounded the Republican Party, foreign policy experts, and the news media. His mobilization of an angry electorate has reshaped the contours of American politics for years to come.