The U.S. Supreme Court on Wednesday granted a request by President Donald Trump's administration to fully enforce a new rule that would curtail asylum applications by immigrants at the U.S.-Mexico border, a key element of his hardline immigration policies.

The court said the rule, which requires most immigrants who want asylum to first seek safe haven in a third country through which they traveled on their way to the United States, could go into effect as litigation challenging its legality continues.

Among the nine judges on the court, liberal Justices Sonia Sotomayor and Ruth Bader Ginsburg dissented.

The White House said in a statement that they are pleased with the decision.

'We are pleased the Supreme Court has ruled our Administration can implement important, needed fixes to the broken asylum system,' Deputy Press Secretary Hogan Gidley said after the court's ruling.

'This greatly helps build on the progress we've made addressing the crisis at our southern border and will ultimately make American communities safer,' Gidley added.

The court's ruling handed a victory to Trump at a time when much of his immigration agenda had been struck down by lower courts

Trump said in a tweet Wednesday night that he had an 'excellent' phone conversation with Mexico president Andres Manuel Lopez Obrador discussing the southern border security

The court's ruling handed a victory to Trump at a time when much of his immigration agenda had been struck down by lower courts. BIG United States Supreme Court WIN for the Border on Asylum!' Trump said on Twitter.

The rule would bar almost all immigrants from applying for asylum at the southern border. It represents the latest effort by Trump's administration to crack down on immigration, a signature issue during his presidency and 2020 re-election bid.

The American Civil Liberties Union and others who challenged the administration's policy in federal court said it violates U.S. immigration law and accused the administration of failing to follow the correct legal process in issuing the rule, which was unveiled on July 15.

In her dissent, Sotomayor said that the government's rule may be in significant tension with the asylum statute.

'It is especially concerning, moreover, that the rule the government promulgated topples decades of settled asylum practices and affects some of the most vulnerable people in the Western Hemisphere - without affording the public a chance to weigh in.'

Eight days after the rule went into effect in July, California-based U.S. District Judge Jon Tigar issued a nationwide injunction blocking it.

Then began a back-and-forth between Tigar and the 9th Circuit, which scaled back the injunction so that the Trump rule was blocked in the border states of California and Arizona while in effect in Texas and New Mexico.

Tigar ruled to restore the nationwide ban on Monday, but the 9th Circuit scaled it back again on Tuesday night.

They were both trumped by Supreme Court, which will allow the asylum restriction to remain in place until the underlying legality of the rule is determined at trial.

'This is just a temporary step, and we´re hopeful we´ll prevail at the end of the day,' ACLU attorney Lee Gelernt said. 'The lives of thousands of families are at stake.'

The Republican president's administration issued the rule in an attempt to reduce the surging number of asylum claims primarily by Central American migrants who have crossed the U.S.-Mexico border in large numbers during his presidency.

The U.S. Supreme Court on Wednesday granted a request by President Donald Trump's administration to fully enforce a new rule that would curtail asylum applications by immigrants at the U.S.-Mexico border (pictured is the wall on the US-Mexico border seen from Chihuahua State in Mexico)

The rule would block nearly all families and individuals from countries like El Salvador, Honduras and Guatemala from entering the United States as asylum seekers after crossing through Mexico. The rule would keep asylum protections for Mexican citizens.

The rule drew legal challenges including from a coalition of groups represented by the ACLU. They accused the administration of pursuing an 'asylum ban' and jeopardizing the safety and security of migrants fleeing persecution and seeking safety in the United States.

In the administration's request to fully enforce the rule, U.S. Solicitor General Noel Francisco asked the Supreme Court to issue a stay blocking the injunction while litigation over the issue proceeds because the judge's order interferes with the government's authority to establish immigration policy.

The administration said the rule screens out asylum claims that are unlikely to succeed and 'deters aliens without a genuine need for asylum from making the arduous and potentially dangerous journey from Central America to the United States.'

The Supreme Court in December rebuffed a bid by the administration to implement a separate policy prohibiting asylum for people crossing the U.S.-Mexican border outside of an official port of entry, with conservative Chief Justice John Roberts joining the four liberal justices in denying the request. (Reporting by Lawrence Hurley and Daniel Trotta; Additional reporting by Andrew Chung; Editing by Howard Goller and Cynthia Osterman)