Oregon Governor Kate Brown and Attorney General Ellen Rosenblum filed a lawsuit against President Donald Trump and acting U.S. Attorney General Matthew Whitaker, claiming the government should not be allowed to force states like Oregon to cooperate with immigration authorities.

“Oregon voters sent a clear message to the Trump administration this week: Oregonians support our sanctuary laws,” said Brown. “The Trump administration’s attempts to withhold public safety dollars from our state is unjust, dangerous, and unconstitutional. All Oregonians, regardless of their immigration status, deserve to have the full protection of our law enforcement.

Related: Voters keep Oregon's sanctuary state law, defeat Measure 105

The lawsuit stems from the recent attempt by the U.S. Department of Justice to force Oregon to cooperate with federal immigration policies by threatening to withhold federal grants.

"For years, these grants have provided millions of dollars to law enforcement in Oregon. But, suddenly these public safety funds have been withdrawn because Oregon will not submit to U.S. DOJ's demand that Oregon participate in its immigration enforcement efforts," said Rosenblum.

According to the Oregon Attorney General’s Office, The lawsuit alleges that two federal immigration statutes usurp state power and violate the United States Constitution. It also alleges that U.S. DOJ's decision to impose these conditions, which Congress did not approve, intrudes on congressional power.

Brown and Rosenblum invited the city of Portland to join the lawsuit, and Mayor Ted Wheeler has indicated he will ask the city council to allow the city to join.