Presidents from Roosevelt to Obama have sought to help allies protect themselves and to engage in collective defense against common dangers. We did this not in a spirit of charity but because we had learned the hard way that problems abroad, if unaddressed, could, before long, imperil us.