WASHINGTON -- The government on Saturday suspended enforcement of President Donald Trump's refugee and immigration ban and scurried to appeal a judge's order, plunging the new administration into a crisis that has challenged Trump's authority - and ability to fulfill campaign promises.
The stand-down, a day after a federal judge in Washington state temporarily blocked the ban, marked an extraordinary setback for the White House. Only a week ago, the president had acted to suspend America's refugee program and halt immigration to the U.S. from seven Muslim-majority countries that the government said raise terrorism concerns.
As the White House worked to reinstate the ban, Trump mocked U.S. District Judge James Robart, appointed by President George W. Bush, as a "so-called judge" whose "ridiculous" ruling "will be overturned." He added in a subsequent tweet: "Because the ban was lifted by a judge, many very bad and dangerous people may be pouring into our country. A terrible decision."
Trump's direct attack recalled his diatribes during the campaign against a federal judge of Mexican heritage who was overseeing a Trump University case. Justice Department lawyers could be called upon to answer for his words as the travel ban case reaches the 9th U.S. Circuit Court of Appeals.
The order had caused unending confusion for many foreigners trying to reach the United States, prompted protests across the United States and led to multiple court challenges. Demonstrations took place outside the White House, in New York and elsewhere. One was planned later Saturday near the estate in Palm Beach, Florida, where Trump was spending the weekend and where the American Red Cross scheduled its annual fundraising gala.
Robart's ruling, which the Justice Department promised to challenge, led federal agencies to unwind enforcement of Trump's executive order.
RELATED: White House to fight judges immigration order that blocks travel ban
The State Department, after initially saying that as many as 60,000 foreigners from Iraq, Syria, Iran, Sudan, Libya, Somalia or Yemen had their visas canceled, reversed course on Saturday and said they could travel to the U.S. if they had a valid visa.
The department on Saturday advised refugee aid agencies that refugees set to travel before Trump signed his order will now be allowed into the United States. A State Department official said in an email obtained by The Associated Press that the government was "focusing on booking refugee travel" through Feb. 17 and working to have arrivals resume as soon as Monday.
The Homeland Security Department no longer was directing airlines to prevent visa-holders affected by Trump's order from boarding U.S.-bound planes. The agency said it had "suspended any and all actions" related to putting in place Trump's order, which the White House argued was "intended to protect the homeland."
The Justice Department was expected to ask the 9th Circuit to set side Robart's ruling so the ban could go back into effect.
Trump made clear what he thought of Robart's action.
"The opinion of this so-called judge, which essentially takes law-enforcement away from our country, is ridiculous and will be overturned," 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!"
After a pause of several hours, the president returned to Twitter: "What is our country coming to when a judge can halt a Homeland Security travel ban and anyone, even with bad intentions, can come into U.S.?"
Sen. Patrick Leahy, D-Vt., a member of the Senate Judiciary Committee, criticized Trump for "attempting to bully and disparage yet another federal judge" and said he seemed "intent on precipitating a constitutional crisis." Trump's rhetoric also could put government lawyers defending his order in a tough spot.
"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," said University of Pittsburgh law professor Arthur Hellman.
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 U.S.-bound travelers 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 U.S. Customs and Border Protection to suspend President Trump's executive order.
RELATED: San Francisco shop featuring cookbooks from countries under travel ban
Government-backed Qatar Airways is one of a few Mideast airlines operating direct daily flights to multiple American cities. Its U.S. destinations from its Doha hub include New York, Chicago, Los Angeles, Miami and Washington.
At New York's John F. Kennedy International Airport, volunteer lawyer Renee Paradis said most of the flights involving passengers from the affected countries were to arrive later Saturday.
"Anybody who comes here on a visa is supposed to be allowed in, so we would anticipate that somebody who is in the air would be able to land and enter," she said. "Of course, as with everything this week, it remains to be seen what happens on the ground."
The executive order has caused chaos within the government and the courts. Trump fired Sally Yates, an Obama administration holdover who was serving as acting attorney general, after she said the Justice Department would not enforce it. In Washington on Saturday, demonstrators chanting "No hate, No fear, Refugees are welcome here" walked from the White House down Pennsylvania Avenue.
Hearings have also been held in court challenges nationwide.
In arguments to the court, Washington state and Minnesota said the temporary ban and the global suspension of the U.S. refugee program harmed residents and effectively mandated discrimination.
Federal attorneys had argued that Congress gave the president authority to make decisions on national security and immigrant entry.
But in his written order Friday, Robart said it's not the court's job to "create policy or judge the wisdom of any particular policy promoted by the other two branches," but rather, to make sure that an action taken by the government "comports with our country's laws."
Homeland Security changes protocol after federal judge's ruling on President's executive order
PRESIDENT DONALD TRUMP
More TOP STORIES News