The White House has hit back after a judge temporarily blocked Donald Trump's controversial immigration ban, initially describing the ruling as “outrageous” before omitting the word from a later statement.

The Justice Department said it would ask for an emergency stay to honour Donald Trump’s executive order to ban people from seven predominantly Muslim countries from entering the US, after District Judge James Robart ruled there was a strong chance that a legal challenge against the ban would succeed.

Judge Robart issued a temporary restraining order on a nationwide basis at a hearing in Seattle and ruled against government lawyers who claimed states did not have the standing to challenge Mr Trump’s order.

US Customs and Border Protection (CBP) are said to have told airlines they are allowed to board passengers who had been barred from entering the country, with the Justice Department not filing a motion immediately. Gulf carrier Qatar Airways said this morning that it would carry passengers from the seven Muslim-majority countries and all refugees who had been banned under the order, according to a statement on the airline's website.

In his ruling Judge Robart said that federal defendants "and their respective officers, agents, servants, employees, attorneys and persons acting in concert or participation with them are hereby enjoined and restrained from" enforcing the executive order.

White House Press Secretary Sean Spicer released a statement following the ruling saying the government "will file an emergency stay of this outrageous order and defend the executive order of the President, which we believe is lawful and appropriate."

Soon after, a revised statement was released that removed the word "outrageous."

"The president's order is intended to protect the homeland and he has the constitutional authority and responsibility to protect the American people," the statement said.

Mr Trump’s order bans travel for people from Iran, Iraq, Syria, Sudan, Somalia, Libya and Yemen and suspends the US refugee programme globally.

Washington and Minnesota were the first two states to sue over the order and Washington State Attorney General Bob Ferguson said the travel ban significantly harms residents and mandates discrimination.

"Judge Robart's decision, effective immediately ... puts a halt to President Trump's unconstitutional and unlawful executive order," Mr Ferguson said.

"The law is a powerful thing — it has the ability to hold everybody accountable to it, and that includes the president of the United States."

The Trump administration has justified its actions on national security grounds, but opponents have labelled the order as unconstitutional as they belive it targets people based on religious beliefs.Washington Solicitor General Noah Purcell said there was an "overwhelming amount of evidence" to show Mr Trump’s executive order was directed at the religion of Islam.

Judge Robart probed a Justice Department lawyer on what he called the "litany of harms" suffered by Washington state's universities, and also questioned the administration's use of the Sept. 11, 2001, attacks on the United States as a justification for the ban.

The Judge asked the federal government lawyer, Michelle Bennett, if there had been any terrorist attacks by people from the seven counties listed in Mr Trump's order since 9/11. Ms Bennet said she did not know.

"The answer is none. You're here arguing we have to protect from these individuals from these countries, and there's no support for that," Judge Robart said.

For President Trump's order to be constitutional, Judge Robart said, it had to be "based in fact, as opposed to fiction."

In Dubai, Tariq Laham, 32, and his fiancee Natalia had scrapped plans to travel to the U.S. after their July wedding in Poland, where Natalia is from.

Mr Laham told Reuters the couple would not reverse their decision.

"It is just too risky," said Laham, a Syrian who works as a director of commercial operations at a multinational technology company. "Everyday you wake up and there is a new decision."

The controversial orders Donald Trump has already issued Show all 9 1 /9 The controversial orders Donald Trump has already issued The controversial orders Donald Trump has already issued Trump and the media White House Press Secretary Sean Spicer takes questions during the daily press briefing Getty Images The controversial orders Donald Trump has already issued Trump and the Trans-Pacific Partnership Union leaders applaud US President Donald Trump for signing an executive order withdrawing the US from the Trans-Pacific Partnership negotiations during a meeting in the Roosevelt Room of the White House in Washington DC. Mr Trump issued a presidential memorandum in January announcing that the US would withdraw from the trade deal Getty The controversial orders Donald Trump has already issued Trump and the Mexico wall A US Border Patrol vehicle sits waiting for illegal immigrants at a fence opening near the US-Mexico border near McAllen, Texas. The number of incoming immigrants has surged ahead of the upcoming Presidential inauguration of Donald Trump, who has pledged to build a wall along the US-Mexico border. A signature campaign promise, Mr Trump outlined his intention to build a border wall on the US-Mexico border days after taking office Getty Images The controversial orders Donald Trump has already issued Trump and abortion US President Donald Trump signs an executive order as Chief of Staff Reince Priebus looks on in the Oval Office of the White House. Mr Trump reinstated a ban on American financial aide being granted to non-governmental organizations that provide abortion counseling, provide abortion referrals, or advocate for abortion access outside of the United States Getty Images The controversial orders Donald Trump has already issued Trump and the Dakota Access pipeline Opponents of the Keystone XL and Dakota Access pipelines hold a rally as they protest US President Donald Trump's executive orders advancing their construction, at Columbus Circle in New York. US President Donald Trump signed executive orders reviving the construction of two controversial oil pipelines, but said the projects would be subject to renegotiation Getty Images The controversial orders Donald Trump has already issued Trump and 'Obamacare' Nancy Pelosi who is the minority leader of the House of Representatives speaks beside House Democrats at an event to protect the Affordable Care Act in Los Angeles, California. US President Donald Trump's effort to make good on his campaign promise to repeal and replace the healthcare law failed when Republicans failed to get enough votes. Mr Trump has promised to revisit the matter Getty Images The controversial orders Donald Trump has already issued Donald Trump and 'sanctuary cities' US President Donald Trump signed an executive order in January threatening to pull funding for so-called "sanctuary cities" if they do not comply with federal immigration law AP The controversial orders Donald Trump has already issued Trump and the travel ban US President Donald Trump has attempted twice to restrict travel into the United States from several predominantly Muslim countries. The first attempt, in February, was met with swift opposition from protesters who flocked to airports around the country. That travel ban was later blocked by the Ninth Circuit Court of Appeals. The second ban was blocked by a federal judge a day before it was scheduled to be implemented in mid-March SANDY HUFFAKER/AFP/Getty Images The controversial orders Donald Trump has already issued Trump and climate change US President Donald Trump sought to dismantle several of his predecessor's actions on climate change in March. His order instructed the Environmental Protection Agency to reevaluate the Clean Power Plan, which would cap power plant emissions Shannon Stapleton/Reuters

A State Department official, speaking on condition of anonymity because the matter is under litigation, said: "We are working closely with the Department of Homeland Security and our legal teams to determine how this affects our operations. We will announce any changes affecting travellers to the United States as soon as that information is available."

The State Department said the order had cancelled up to 60,000 visas. That figure contradicts a statement from a Justice Department lawyer who during a court hearing in Virginia said 100,000 visas had been revoked.

The decision in Washington state came at the end of a day of furious legal activity around the country over the immigration ban. In Boston, US District Judge Nathan Gorton expressed scepticism during oral arguments about a civil rights group's claim that Mr Trump's order represented religious discrimination, before declining to extend the restraining order.

US District Judge Leonie Brinkema in Alexandria, Virginia, ordered the federal government to give the state a list by Thursday of "all persons who have been denied entry to or removed from the United States."