Donald Trump’s disdain for NATO will reshape the domestic politics—and military posture—of some of America’s closest allies.