A federal judge in San Francisco Edward Chen, California has blocked Trump from ending temporary protections for some migrants living legally in the country, citing the president’s own words in his decision.
According to Politico.com. said that the ruling affects hundreds of thousands of migrants from El Salvador, Haiti, Nicaragua, and Sudan who are currently in the U.S. on what is known as Temporary Protected Status, or TPS.

District Judge Edward Chen issued a temporary injunction late Wednesday to halt the president’s plan to end the protections for roughly 300,000 people, also ruling TPS beneficiaries must be allowed to work legally in the U.S. until legal proceedings end.

Chen, an appointee of former President Barack Obama, wrote in his order that Trump’s plan to end TPS would result in “irreparable harm and great hardship” for those affected.

He wrote, “Many have U.S.-born children; those may be faced with the Hobson’s choice of bringing their children with them and tearing them away from the only country and community they have known or splitting their families apart.”

TPS protects people at risk from crises at home from being forced to return to those conditions. Recipients from Sudan were set to lose their protections on Nov. 2 and others next year.

But Salvadorans make up the bulk of TPS recipients with some 263,000 living in the country under the program.

Trump has pursued a hardline crackdown on undocumented immigration since attaining America’s highest office and has whittled down avenues for people to pursue immigration to the U.S. legally, including TPS.

According to The Associated Press In issuing his decision, Chen said evidence exists that suggests “President Trump harbors an animus against non-white, non-European aliens which influenced his decision to end the TPS designation.”

Chen’s ruling effectively means that the administration must continue TPS until legal challenges to its plan to stop it have concluded.

The Justice Department slammed the ruling, saying “usurps the role of the executive branch in our constitutional order”.

A spokesman Devin O’Malley said in a statement; “The Justice Department completely rejects the notion that the White House or the Department of Homeland Security did anything improper.”

“We will continue to fight for the integrity of our immigration laws and our national security.”