It does behoove a nation to defend her allies--when her allies are in the right. But when an ally isn't in the right, it doesn't help the United States or the ally to give it blind support.
Alliances are about mutual interests; if they can be tossed aside at a whim, they are meaningless.