The United States has vetoed a U.N. resolution that would have required President Trump to rescind his declaration of Jerusalem as the capital of Israel.

The Egyptian-sponsored Security Council resolution was approved by the 14 other council members, a reflection of the depth of global opposition to Trump’s action.

Arab nations knew in advance that the United States was certain to veto the resolution, but they sought the vote to demonstrate that countries everywhere and even many U.S. allies such as Britain, France and Japan are against Trump’s action.

U.S. Ambassador Nikki Haley called the resolution “an insult” that won’t be forgotten, saying the United Nations forced the U.S. to cast a veto simply because of its right to decide where to put its embassy.