How America’s foreign policy realignment under Donald Trump threatens to unravel decades of global alliances and what history tells us about what might come next