The resolution called on “all States to refrain from the establishment of diplomatic missions in the Holy City of Jerusalem" in order to prevent the fulfillment of President Trump's pledge to relocate the US embassy from Tel Aviv to Jerusalem.

The text also demanded that all states "comply with Security Council resolutions regarding the Holy City of Jerusalem, and not recognize any actions or measures contrary to those resolutions.”

Fourteen members of the Security Council supported the resolution, with only the United States in opposition.

Earlier, US ambassador to the UN Nikki Haley said that the United States will not "make the same mistake again," allowing the UN Security Council to pass one-sided resolutions against Israel by refusing to use its veto power.

Haley criticized the Obama Administration for allowing the passage of UN Security Council Resolution 2334, which declared that Israel has no rights to any part of eastern Jerusalem, including the Western Wall.

The ambassador told the Security Council after the vote that "the United States will not be told by any country where we can put our embassy."

"What we witnessed here today in the Security Council is an insult. It won't be forgotten," she said, adding that the measure was "one more example of the United Nations doing more harm than good in addressing the Israeli-Palestinian conflict."