U.S. judge blocks Trump's travel ban

Protesters gather at O'Hare International Airport after more than a dozen people were detained, including green card holders, Saturday, Jan. 28, 2017, in Chicago. They were detained following President Donald Trump's executive order on Friday that bans legal U.S. residents and visa-holders from seven Muslim-majority nations from entering the U.S. for 90 days and puts an indefinite hold on a program resettling Syrian refugees.  (Chris Sweda/Chicago Tribune via AP)

Protesters gather at O'Hare International Airport after more than a dozen people were detained, including green card holders, Saturday, Jan. 28, 2017, in Chicago. They were detained following President Donald Trump's executive order on Friday that bans legal U.S. residents and visa-holders from seven Muslim-majority nations from entering the U.S. for 90 days and puts an indefinite hold on a program resettling Syrian refugees. (Chris Sweda/Chicago Tribune via AP)

WASHINGTON (AP) — A federal judge's emergency order has temporarily barred the U.S. from deporting people from nations subject to President Donald Trump's travel ban. The judge said travelers who had been detained had a strong argument that their legal rights had been violated.

The Department of Homeland Security issued a statement early Sunday that said the court ruling would not affect the overall implementation of the White House order and it affected a relatively small number of travelers who were inconvenienced by security procedures upon their return.

The emergency order was issued by U.S. District Judge Ann Donnelly in New York Saturday night after lawyers for the American Civil Liberties Union filed a court petition on behalf of people from seven predominantly Muslim nations who were detained at airports across the country as the ban took effect.

The judge's order addressed only a portion of Trump's executive action. As the decision was announced, cheers broke out in crowds of demonstrators who had gathered at American airports and outside the Brooklyn courthouse where the ruling was issued.

The order barred U.S. border agents from removing anyone who arrived in the U.S. with a valid visa from Iraq, Syria, Iran, Sudan, Libya, Somalia and Yemen. It also covered anyone with an approved refugee application.