Trump’s attacks on long-standing allies are changing the balance of global power.