A federal judge granted an emergency stay on implementation of President Trump's executive order restricting immigration from seven Middle Eastern countries late Saturday. The temporary stay impacts travelers with valid visas.

"Nationwide injunction - no one can be removed - [government] must provide list of names of [people] affected," tweeted Dale Ho, a lawyer for the American Civil Liberties Union.

The ACLU filed a lawsuit in the eastern district of New York on behalf of two Iraqi nationals detained at John F. Kennedy airport. The stay was granted to in part because Syrian refugees and other migrants authorized to come to the United States would suffer "irreparable harm" if they were returned to their countries of origin while the suspension lasts.

"It is appropriate and just that, pending completion of a hearing before the Court on the merits of the Petition, that the Respondents be enjoined and restrained from the commission of further acts and misconduct in violation of the Constitution as described in the Emergency Motion for Stay of Removal," Judge Ann Donnelly wrote in her order.

Of the two plaintiffs, one — Hameed Jhalid Darweesh, who served as an interpreter in the U.S. Army — was released early Saturday afternoon. The second, the husband of a U.S. contractor living in the U.S., was released Saturday evening before the judge's order, according to Fox News. Eleven people unnamed in the ACLU complaint, which is likely to be certified as a class action lawsuit, were also detained in New York.

Editor's note: The story has been edited to reflect that the judge's stay on the executive order is temporary and corrected to note that both of the named plainitiffs were released earlier Saturday.