A US judge has ruled that the Trump administration's attempt to strip protections from Venezuelan and Haitian migrants is unlawful.

This decision by District Judge Edward Chen allows around 600,000 Venezuelans and 500,000 Haitians to live and work legally in the US, setting aside the Department of Homeland Security's (DHS) efforts to end temporary protected status (TPS) for these individuals.

The TPS program was established in 1990 to protect migrants from countries suffering from dangerous conditions, including war and natural disasters.

Judge Chen's ruling stated that the DHS Secretary's actions in revoking protections were unprecedented and violated the law, emphasizing the dangerous conditions in the migrants' home countries.

A spokesperson for DHS criticized the ruling, stating the program had been politicized and suggesting that it did not reflect the will of the American people.

President Trump had previously sought to revoke these extensions and announced plans to end TPS for several nationalities. However, Judge Chen's decision counters those efforts, maintaining protections for many vulnerable migrants amid ongoing legal battles surrounding immigration policy.