The move marks the first successful legal challenge against the Trump administration and affects those who have arrived in the U.S. already or were in transit with valid visas.
The court ruled on a habeas corpus petition filed by the American Civil Liberties Union (ACLU) on behalf of two Iraqi men who were detained at John F. Kennedy International Airport on Friday after Trump's ban. Since then both men, Hameed Khalid Darweesh and Sameer Abdulkhaleq Alshaw, have been granted entry into the U.S.
Cecillia Wang, deputy legal director at the ACLU, tweeted:
And only minutes after the judge’s ruling in New York, another came in Virginia when U.S. District Judge Leonie Brinkema issued a temporary restraining order to block the removal of any green-card holders being detained at Dulles International Airport for seven days.
Brinkema’s action also ordered that lawyers have access to those held there because of the president’s ban.
There have been several protests at various airports since the ban was announced.
Source: CNN/The Hill