The UN Security Council passed a resolution demanding a ceasefire in Gaza with a rare US abstention, angering Israel and leading to the cancellation of high-level talks in Washington.