The Department of Homeland Security has suspended all enforcement of the immigration ban signed into effect by President Donald Trump.

Immigrants will be once more be allowed into the US from the seven countries affected by the executive order last month: Syria, Iraq, Iran, Libya, Yemen, Sudan and Somalia.

The move follows a nationwide locking of the executive order from federal judge James Robart in Washington – a move that has plunged the new administration into a crisis that has challenged Mr Trump’s authority, and ability to fulfil his promises.

The 60,000 or so visas that had been revoked will be handed back to their holders, the State Department announced.

A caveat applies to those whose visas had been physically stamped or taken away – they will have to reapply.

The dramatic move to suspend the enforcement of the ban comes just eight days after the executive order was signed by the President, which immediately instructed agencies and airports across the US to no longer allow nearly all travellers from the seven countries into the US.

The order prompted confusion for those travelling, massive protests around the country and at least four states and three large civil rights organisations filed lawsuits.

In Michigan, for example, a judge clarified the order to make sure the ban did not affect law-abiding, permanent residents of the US.

But it was in Seattle, Washington, that a lawsuit filed by state attorney general Bob Ferguson brought about a nationwide suspension of the ban.

Seattle judge blocks Trump’s immigration ban nationwide

Judge Robart ruled in favour of Mr Ferguson. “No one is above the law,” said Mr Ferguson. “Not even the President.”

It is not a done deal, however – the case could go all the way to the Supreme Court before a final decision is made. The White House is working to reinstate the ban and the Justice Department is expected to ask the 9th Circuit Court of Appeals to set aside Judge Robert’s ruling so the ban could go back into effect.

Protestors rally at JFK Airport against Muslim immigration ban Show all 20 1 /20 Protestors rally at JFK Airport against Muslim immigration ban Protestors rally at JFK Airport against Muslim immigration ban jfk-protest-muslim-ban-1 Protestors rally during a demonstration against the Muslim immigration ban at John F. Kennedy International Airport on January 28, 2017 in New York City. President Trump signed the controversial executive order that halted refugees and residents from predominantly Muslim countries from entering the United States. Getty Protestors rally at JFK Airport against Muslim immigration ban jfk-protest-muslim-ban-2 Protestors rally during a protest against the Muslim immigration ban at John F. Kennedy International Airport on January 28, 2017 in New York City. President Trump singed the controversial executive order that halted refugees and residents from predominantly Muslim countries from entering the United States. Stephanie Keith/Getty Protestors rally at JFK Airport against Muslim immigration ban jfk-protest-muslim-ban-3 Protestors rally during a protest against the Muslim immigration ban at John F. Kennedy International Airport on January 28, 2017 in New York City. President Trump singed the controversial executive order that halted refugees and residents from predominantly Muslim countries from entering the United States. Stephanie Keith/Getty Protestors rally at JFK Airport against Muslim immigration ban jfk-protest-muslim-ban-4 SAN FRANCISCO, CA - JANUARY 28: Demonstrators hold signs during a rally against a ban on Muslim immigration at San Francisco International Airport on January 28, 2017 in San Francisco, California. President Donald Trump signed an executive order Friday that suspends entry of all refugees for 120 days, indefinitely suspends the entries of all Syrian refugees, as well as barring entries from seven predominantly Muslim countries from entering for 90 days. Stephen Lam/Getty Protestors rally at JFK Airport against Muslim immigration ban jfk-protest-muslim-ban-5 A crowd of protesters gathers outside of the Brooklyn Federal Courthouse as a judge hears a challenge against President Donald Trump's executive ban on immigration from several Muslim countries, on January 28, 2017 in Brooklyn. The judge issued an emergency stay on part of Trump's executive order, ruling that sending refugees stopped at U.S. airports back to their countries would be harmful. Yana Paskova/Getty Protestors rally at JFK Airport against Muslim immigration ban jfk-protest-muslim-ban-6 Protestors rally during a demonstration against the new immigration ban issued by President Donald Trump at John F. Kennedy International Airport on January 28, 2017 in New York City. President Trump signed the controversial executive order that halted refugees and residents from predominantly Muslim countries from entering the United States. Stephanie Keith/Getty Protestors rally at JFK Airport against Muslim immigration ban jfk-protest-muslim-ban-7 NEW YORK, NY - JANUARY 28: Protestors rally during a demonstration against the new immigration ban issued by President Donald Trump at John F. Kennedy International Airport on January 28, 2017 in New York City. President Trump signed the controversial executive order that halted refugees and residents from predominantly Muslim countries from entering the United States. Stephanie Keith/Getty Protestors rally at JFK Airport against Muslim immigration ban jfk-protest-muslim-ban-8 Protestors rally during a demonstration against the new immigration ban issued by President Donald Trump at John F. Kennedy International Airport on January 28, 2017 in New York City. President Trump signed the controversial executive order that halted refugees and residents from predominantly Muslim countries from entering the United States. Stephanie Keith/Getty Protestors rally at JFK Airport against Muslim immigration ban jfk-protest-muslim-ban-9 NEW YORK, NY - JANUARY 28: Protestors rally during a demonstration against the Muslim immigration ban at John F. Kennedy International Airport on January 28, 2017 in New York City. President Trump signed the controversial executive order that halted refugees and residents from predominantly Muslim countries from entering the United States. (Photo by Stephanie Keith/Getty Images) Getty Images Protestors rally at JFK Airport against Muslim immigration ban jfk-protest-muslim-ban-10 NEW YORK, NY - JANUARY 28: Protestors rally during a demonstration against the Muslim immigration ban at John F. Kennedy International Airport on January 28, 2017 in New York City. President Trump signed the controversial executive order that halted refugees and residents from predominantly Muslim countries from entering the United States. (Photo by Stephanie Keith/Getty Images) Getty Images Protestors rally at JFK Airport against Muslim immigration ban jfk-protest-muslim-ban-11 NEW YORK, NY - JANUARY 28: Protestors rally during a demonstration against the Muslim immigration ban at John F. Kennedy International Airport on January 28, 2017 in New York City. President Trump signed the controversial executive order that halted refugees and residents from predominantly Muslim countries from entering the United States. Stephanie Keith/Getty Protestors rally at JFK Airport against Muslim immigration ban jfk-protest-muslim-ban-12 Protestors rally during a demonstration against the Muslim immigration ban at John F. Kennedy International Airport on January 28, 2017 in New York City. President Trump signed the controversial executive order that halted refugees and residents from predominantly Muslim countries from entering the United States. Stephanie Keith/Getty Protestors rally at JFK Airport against Muslim immigration ban jfk-protest-muslim-ban-13 Protestors rally during a demonstration against the Muslim immigration ban at John F. Kennedy International Airport on January 28, 2017 in New York City. President Trump signed the controversial executive order that halted refugees and residents from predominantly Muslim countries from entering the United States. Stephanie Keith/Getty Protestors rally at JFK Airport against Muslim immigration ban jfk-protest-muslim-ban-14 Protestors rally during a demonstration against the Muslim immigration ban at John F. Kennedy International Airport on January 28, 2017 in New York City. President Trump signed the controversial executive order that halted refugees and residents from predominantly Muslim countries from entering the United States. Stephanie Keith/Getty Protestors rally at JFK Airport against Muslim immigration ban jfk-protest-muslim-ban-15 Protestors rally during a demonstration against the Muslim immigration ban at John F. Kennedy International Airport on January 28, 2017 in New York City. President Trump signed the controversial executive order that halted refugees and residents from predominantly Muslim countries from entering the United States. Stephanie Keith/Getty Protestors rally at JFK Airport against Muslim immigration ban jfk-protest-muslim-ban-16 Protestors rally during a demonstration against the Muslim immigration ban at John F. Kennedy International Airport on January 28, 2017 in New York City. President Trump signed the controversial executive order that halted refugees and residents from predominantly Muslim countries from entering the United States. Stephanie Keith/Getty Protestors rally at JFK Airport against Muslim immigration ban jfk-protest-muslim-ban-17 NEW YORK, NY - JANUARY 28: Protestors rally during a protest against the Muslim immigration ban at John F. Kennedy International Airport on January 28, 2017 in New York City. President Trump singed the controversial executive order that halted refugees and residents from predominantly Muslim countries from entering the United States. Stephanie Keith/Getty Protestors rally at JFK Airport against Muslim immigration ban jfk-protest-muslim-ban-18 Protestors rally during a protest against the Muslim immigration ban at John F. Kennedy International Airport on January 28, 2017 in New York City. President Trump singed the controversial executive order that halted refugees and residents from predominantly Muslim countries from entering the United States. Stephanie Keith/Getty Protestors rally at JFK Airport against Muslim immigration ban jfk-protest-muslim-ban-19 Protestors rally during a protest against the Muslim immigration ban at John F. Kennedy International Airport on January 28, 2017 in New York City. President Trump singed the controversial executive order that halted refugees and residents from predominantly Muslim countries from entering the United States. Stephanie Keith/Getty Protestors rally at JFK Airport against Muslim immigration ban jfk-protest-muslim-ban-20 Passengers wait in line to check in at the American Airlines terminal at JFK International Airport August 10, 2006 in the Queens borough of New York City. British authorities arrested 21 people and halted a anallegedly terrorist plot to use liquid explosives concealed in carry-on luggage to blow up airliners traveling between Britain and the U.S. Homeland Security chief Michael Chertoff said that the plot appeared to be directed at U.S. carriers flying out of Heathrow. such as United Airlines, American Airlines, Continental Airlines. Stephen Chernin/Getty

But Mr Trump made clear his thoughts on the ruling, calling the order from the “so-called” judge “ridiculous”.

“The opinion of this so-called judge, which essentially takes law-enforcement away from our country, is ridiculous and will be overturned,” Mr Trump tweeted. “When a country is no longer able to say who can and who cannot come in & out, especially for reasons of safety & security – big trouble!”

Mr Robart was sworn in with almost unanimous consent from the Senate under George W Bush.

That rhetoric could put government lawyers defending Mr Trump’s order in a difficult position if a federal appeals court were to ask them about it.

“Either they have to defend the statements that Judge Robart is a ‘so-called judge’, which you can’t do, or they have to distance themselves from the President, who is their boss,” University of Pittsburgh law professor Arthur Hellman told the Associated Press.

With legal challenges pending, two prominent Middle Eastern air carriers announced they would resume carrying passengers from the seven affected countries. Qatar Airways and Etihad Airways, national carrier of the United Arab Emirates, said US-bound travellers from those countries with valid visas would be allowed to board.

In Egypt, Cairo airport and airline officials said they have received instructions from the US Customs and Border Protection to suspend President Trump’s executive order.

Government-backed Qatar Airways is one of a few Middle East airlines operating direct daily flights to multiple American cities. Its US destinations from its Doha hub include New York, Chicago, Los Angeles, Miami and Washington.

White House Press Secretary Sean Spicer quickly released a statement on Friday evening to say the Justice Department would enforce the emergency stay of the executive order “at the earliest time possible”.

He called the judge ruling “outrageous” but then, minutes later, edited out the word from the statement and said the government would adhere to the court’s ruling until the Justice Department intervenes.

Donald Trump fights back after judge blocks his travel ban

Mr Ferguson has in the past also filed lawsuits against former President Barack Obama, and insisted his lawsuit was not a partisan issue.

“We are a nation of laws,” he told CNN on Friday evening.

The executive order had sought to indefinitely suspend Syrian refugees, ban all travellers from the seven countries for 90 days and refugees for 120 days.

It also wanted to develop a “uniform screening procedure” for all immigrants from around the world, prompting legal experts to threaten this wording, if interpreted literally, could shut down all immigration and tourism.