Revellers carrying an Israeli national flag celebrate along a sea side avenue in Tel Aviv during the city's annual Gay Pride parade on June 8, 2018. - Tens of thousands of people gathered along the beach in the Israeli commercial capital Tel Aviv for the largest Gay Pride event in the Middle East. (Photo by GIL COHEN-MAGEN / AFP) (Photo credit should read GIL COHEN-MAGEN/AFP/Getty Images)

Hundreds of demonstrators gathered in Tel Aviv after legislation that would have allowed same-sex couples to have a child via surrogacy was voted down.

Prime Minister Benjamin Netanyahu voted against a clause to the surrogacy bill that would have extended eligibility to same-sex couples, which he had previously voiced support for in a video posted to social media this week.

The bill allows single women to be surrogates and previously it only allowed heterosexual married couples to use surrogacy.

The clause was proposed by MK Amir Ohana, an openly gay members of Netanyahu’s Likud party.

ח״כ אמיר אוחנה דיבר איתי לא פעם על חוק הפונדקאות. הוא העלה נקודה מאוד פשוטה: לאמהות יחידניות יש זכות לתהליך פונדקאות, אבל לאבות יחידנים אין זכות כזאת. זה פשוט לא הוגן וצריך לתקן את זה. לכן הודעתי לו היום בישיבת סיעת הליכוד שאני אתמוך בתיקון החוק שהוא יגיש pic.twitter.com/t4hrzNKYhR — Benjamin Netanyahu (@netanyahu) July 16, 2018

“Contrary to what was reported, I am entirely consistent on the issue of surrogacy. I support surrogacy for both mothers and fathers,” Netanyahu said in a statement.

“Today, we voted for the bill for mothers. I told MK Ohana in advance that I would not support his revision, as he has submitted to this bill, since it will topple this bill and then mothers would not receive surrogacy [rights].”

On Twitter, Netanyahu said he would support a clause allowing single fathers to be surrogates if it was put to the Knesset, Israel’s legislative body.

The Likud party said in a statement: “Prime Minister Netanyahu voted today for the surrogacy law for single mothers, because it is a bill that was supported by the coalition and takes an important step forward in support of single mothers.”

Israel’s LGBT Task Force has called on members to strike in response to the vote.

“We call on members of the community to be absent from work, to close their businesses and take part in public protests,” the group said, Haaretz reported.

MK Yair Lapid, leader of the opposition Yesh Atid party, called the prime minister a “liar” in a statement.

“Two days ago during a Likud faction meeting Netanyahu said that he supports a change in the bill to enable LGBT people to become parents,” he said.

“On the same day, he posted a video in which he repeated — both in words and in writing — his commitment to support the change.

“I have never said this before about a prime minister of Israel, but I have no choice: liar.”