SEATTLE (AP) — A U.S. judge on Friday temporarily blocked President Donald Trump‘s ban on people from seven predominantly Muslim countries after Washington state and Minnesota urged a nationwide hold on the executive order that has launched legal battles across the country.

U.S. District Judge James Robart in Seattle ruled against government lawyers’ claims that the states did not have the standing to challenge Trump’s order and said they showed their case was likely to succeed.

“The state has met its burden in demonstrating immediate and irreparable injury,” Robart said.

Trump’s order last week sparked protests nationwide and confusion at airports as some travelers were detained. The White House has argued that it will make the country safer.

Washington became the first state to sue, with Attorney General Bob Ferguson saying the order was causing significant harm to residents and effectively mandates discrimination. Minnesota joined the suit this week.

The two states won a temporary restraining order while the court considers the lawsuit, which says key sections of Trump’s order are illegal and unconstitutional. Court challenges have been filed nationwide from states and advocacy groups, with some other hearings also held Friday.

“Washington has a profound interest in protecting its residents from the harms caused by the irrational discrimination embodied in the order,” Ferguson said in a brief.

Federal attorneys had argued that Congress gave the president authority to make decisions on national security and admitting immigrants.

The lawsuit says Trump campaigned on a promise to ban Muslims from coming to the U.S. and kept up that rhetoric while defending the travel ban. Lawyers pointed to dozens of exhibits of speeches and statements Trump has made.

“The executive order effectively mandates that the states engage in discrimination based on national origin and/or religion, thereby rescinding the states’ historic protection of civil rights and religious freedom,” the complaint said, calling it a violation of the U.S. Constitution.

The lawsuit ultimately seeks to permanently block parts of the executive order that suspend immigration from the seven Muslim-majority countries, put the U.S. refugee admissions program on hold and halt entry of Syrian refugees.

Ferguson said the order is causing significant harm to Washington residents, businesses and its education system. It will reduce tax revenue and impose significant costs on state agencies, as well as make it impossible for some state employees and students to travel, he said.

Washington-based businesses Amazon, Expedia and Microsoft support the state’s efforts to stop the order. They say it’s hurting their operations, too.

___

This article was written by Martha Bellisle from the Associated Press.

Have a tip we should know? [email protected]