US President Donald Trump's order to restrict people from seven Muslim-majority countries from entering the United States hit a roadblock late on Saturday when a federal judge in New York said stranded travellers could stay in the country.

The emergency court ruling was cheered at Boston's Logan International Airport, one of several major US airports where protesters angry with Trump's order had gathered.

Source: b"Protesters against Donald Trump's immigration ban at JFK International Airport in New York / Source: Reuters"

The ruling by Judge Ann Donnelly of the US District Court in Brooklyn, New York came during a hearing called after President Donald Trump issued the executive order blocking people from seven countries and putting a temporary halt to refugee admissions.

The emergency stay, in turn, temporarily blocks the US government from sending people out of the country after they have landed at a US airport with valid visas.

The American Civil Liberties Union, which sought the temporary stay, said it would help 100 to 200 people with valid visas or refugee status who found themselves detained in transit or at US airports after Trump signed the order late on Friday.

Source: b'A woman from Dubai lands at JFK International Airport / Source: Reuters'

It was a dramatic end to Trump's first week in office, capped by the president's four-month ban on refugees entering the United States and a 90-day hold on travellers from Syria and six other countries.

Trump had promised during his campaign what he called "extreme vetting" of immigrants and refugees to try to prevent terror attacks.

Source: b'US President Donald Trump / Source: Flickr'

He told reporters in the White House's Oval Office earlier on Saturday that his order was "not a Muslim ban" and said the measures were long overdue.

"It's working out very nicely. You see it at the airports, you see it all over," Trump said. The White House could not be immediately reached for comment on the emergency court ruling.

Senior officials at the US Department of Homeland Security told reporters they had not seen the ruling, but said the government would implement any appropriate orders.

Inputs from Reuters

(Feature image: Protesters at O'Hare Airport in Chicago / Source: Reuters)