The U.N. General Assembly has endorsed a sweeping accord to ensure safe and orderly migration over opposition from five countries, including the United States and Hungary.
The Global Compact for Migration is the first international document dealing with the issue, though it's not legally binding.
It was endorsed Wednesday by a 152-5 vote, with Israel, the Czech Republic and Poland also voting "no" and 12 countries abstaining.
The vote in favor of the resolution was lower than the 164 countries that approved the agreement by acclamation at a conference in Marrakech, Morocco, earlier this month.
Billed as the first international document on managing migration, it lays out 23 objectives to open up legal migration and discourage illegal border crossings, as the number of people on the move globally has surged to more than 250 million.
Rows over the accord have erupted in several European Union nations, sparking the collapse of Belgium's coalition government and pushing Slovakia's foreign minister to tender his resignation.
From the United States to Europe and beyond, right-wing and populist leaders have taken increasingly draconian measures to shut out migrants in recent years.
According to diplomats, the United States had sought up to the last minute to convince other countries not to support the pact.
The United States and other opponents argue that the compact is attempting to "globalize" how migration is carried out at the expense of the sovereignty of individual countries, and is trying to make new international law. Supporters counter that the compact is non-binding and every country remains sovereign and in charge of its borders and migration policy.
Before the vote, General Assembly President Maria Fernanda Espinosa called the compact "a historic opportunity to cooperate, exchange good practices and learn from each other so that migration, a phenomenon that has marked the history of humanity, benefits all of us."
"Who can be against guidelines that strengthen the fight against migrant trafficking and human trafficking?," she asked, stressing that "no state, as powerful as it may be, is able to resolve alone the challenges of international migration."
By contrast, Hungary's Foreign Minister Peter Szijjarto, whose country's right-wing Prime Minister Viktor Orban is vehemently opposed to migration, warned the assembly that approving the "unbalanced, biased and extremely pro-migration" compact would be "a serious mistake."
"This document describes migration as if it would be the best thing what (sic) has ever happened to humanity," he said. "But this is not true. Migration is a dangerous phenomenon" that has destabilized countries of origin and transit and "put enormous security risk on countries of destination."
Szijjarto said Hungary is also concerned "that this document will contribute to launch new massive migratory flows all around the world, which will put enormous risk around the globe."
The assembly chamber remained silent after Szijjarto's speech but after Philippines Foreign Secretary Teodoro Locsin Jr. spoke out in strong support of the compact, diplomats burst into loud applause.
Locsin stressed that "the compact does not derogate one iota from sovereignty, but it reveals sovereignty's fundamentally moral nature."
"A key aspect of sovereignty is the care states must take of people inside them, even if they are on the move from countries of origin through countries of transit to where they finally end up to be welcomed or booted out," he said.
Locsin said the compact "merely speaks truth to sovereign power and reminds it of its moral aspect." And it mildly suggests "what might be done out of decency about the problems encountered by migrants. It does not tell states what to do," he said.
Locsin said that "Western countries would be cesspools without migrants."
"Migrants are not slaves in transport, but free human beings on the move, with more courage to improve their condition aboard, than ... to persist in the wretched places they must flee or perish," Locsin said. "Sometimes the needs of state and migrants overlap, sometimes not."
The drafting process for the global compact was launched after all 193 U.N. member states, including the United States under President Barack Obama, adopted a declaration in 2016 saying no country can manage international migration on its own and agreed to work on a pact.
But the United States under President Donald Trump pulled out a year ago, claiming that numerous provisions in the compact were "inconsistent with U.S. immigration and refugee policies."
After lengthy negotiations on the often contentious migration issue, 192 countries unanimously agreed on the 34-page compact in July — every member of the U.N. General Assembly except the United States, which boycotted the meeting.
But in recent months, opposition to the compact has grown, reflected in the lower number of countries approving the compact in Marrakech and voting "yes" on Wednesday.
U.S. Deputy Assistant Secretary of State Andrew Veprek reiterated U.S. opposition, telling the assembly Wednesday that the United States honors the contributions of immigrants who helped build the country, but "we cannot support a compact or process that imposes, or has the potential to impose, international guidelines, standards, expectations or commitments" that might constrain government decisions, especially on security of borders and who to admit.