But the humanitarian impulse, which generally favors helping others around the world before tending to U.S. interests, has been driving American foreign policy to a considerable extent since the end of the Cold War.