They knew they could because US would play the villain so they could play the smol bean dissenters at little risk. If this was a simple majority vote they would have been corralled into submission
Remember that French, Japanese, Korean leaders are all facing pressure and protests domestically that are pro-Palestine. If they can appease some of them without doing anything material, they will do it