The president’s remarks to donors at a fundraising event occur just hours before the United Nations vote demanding a cease-fire in the war between Israel and Hamas.