Israeli Prime Minister Benjamin Netanyahu thanked the Trump administration Thursday for standing by its decision to recognize Jerusalem as the capital of Israel and move the U.S. embassy to Jerusalem, even in the face of a United Nations resolution condemning the move.

“Thank you, President Trump and Ambassador [Nikki] Haley for standing up for Israel and for standing up for the truth. Ultimately the truth will prevail,” Netanyahu tweeted.

The United Nations General Assembly voted 128-9 on Thursday to condemn the president’s decision to recognize Jerusalem as the capital of Israel, a move Trump announced this month.

Guatemala, Honduras, Israel, Marshall Islands, Micronesia, Nauru, Palau, and Togo, along with the U.S., opposed the resolution. Thirty-five countries abstained from the vote.

“America will put our embassy in Jerusalem. That is what the American people want us to do and it is the right thing to do,” Haley, the U.S. ambassador to the United Nations, said after the vote. “No vote in the United Nations will make any difference on that. But this vote will make a difference on how Americans look at the UN, and on how we look at countries who disrespect us in the UN, and this vote will be remembered.”

Before the vote, which occurred during an emergency session of the United Nations General Assembly, Netanyahu slammed the United Nations and said Israel “rejects outright this vote.”

“The attitude to Israel of many nations in the world, in all continents, is changing outside of the UN walls, and will eventually filter into the UN as well, the house of lies,” he said.