American foreign policy, for all its shortcomings, has underpinned political stability around the world.