PALM BEACH, Fla. (AP) — President Donald Trump lashed out Saturday at “this so-called judge” who put a nationwide hold on his executive order denying entry to the U.S. to refugees and people from seven predominantly Muslim countries. The ruling set in motion another weekend of confusion and chaos around the country.

The White House pledged to swiftly appeal the federal judge’s ruling late Friday, but that didn’t appear to be enough for Trump, who vented his frustrations on Twitter.

“The opinion of this so-called judge, which essentially takes law-enforcement away from our country, is ridiculous and will be overturned!” Trump said.

Trump has said the travel ban, which he enacted by executive order on Jan. 27, will keep Americans safe by keeping potential terrorists from entering the country.

Related Video

He also said Saturday on Twitter that “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!”

U.S. District Judge James Robart in Seattle ruled late Friday against government lawyers’ claims that Washington state and Minnesota, which sued over the ban, lacked the legal grounds to challenge Trump’s order. Robart said the states showed that their case was likely to succeed.

Trump’s order last week sparked protests nationwide and confusion at airports as some travelers were detained.

More protests were planned for this weekend, including near Trump’s estate in Palm Beach, Florida, where he is spending the weekend.

A person walks outside the federal courthouse in Seattle carrying a sign that reads “I’m with Bob and Immigrants,” in reference to Washington state Attorney General Bob Ferguson, Friday, Feb. 3, 2017, during a hearing in federal court. A U.S. judge on Friday temporarily blocked President Donald Trump’s ban on people from seven predominantly Muslim countries from entering the United States after Washington state and Minnesota urged a nationwide hold on the executive order that has launched legal battles across the country. (AP Photo/Ted S. Warren)
http://www.psdispatch.com/wp-content/uploads/2017/02/web1_z8888.jpg.optimal.jpgA person walks outside the federal courthouse in Seattle carrying a sign that reads “I’m with Bob and Immigrants,” in reference to Washington state Attorney General Bob Ferguson, Friday, Feb. 3, 2017, during a hearing in federal court. A U.S. judge on Friday temporarily blocked President Donald Trump’s ban on people from seven predominantly Muslim countries from entering the United States after Washington state and Minnesota urged a nationwide hold on the executive order that has launched legal battles across the country. (AP Photo/Ted S. Warren)

By DARLENE SUPERVILLE

Associated Press