The United States vetoed a UN resolution demanding an immediate cease-fire in the war in Gaza on Wednesday because it is not linked to an immediate release of hostages taken captive by Hamas in Israel in October 2023.