Why Alliances Endure—and How They Break