WASHINGTON (AP) — The Justice Department ratcheted up legal pressure Monday on local governments over their “sanctuary” policies that hinder federal immigration officers, bringing two new lawsuits and launching a coordinated messaging campaign to highlight an election-year priority of President Donald Trump.

Declaring that law enforcement officers are being “put in harm’s way by these ideologically driven policies,” Attorney General William Barr said that the Trump administration suing the state of New Jersey and the county that is home to Seattle over sanctuary immigration policies — municipalities that offer protections to immigrants in the U.S. illegally.

The Justice Department says New Jersey is violating federal law by prohibiting state and local law enforcement from sharing information about inmates who are in the U.S. illegally. King County was hit with a lawsuit over a policy that prohibits the Department of Homeland Security from using the King County International Airport-Boeing Field for deportation flights.

“Today is a significant escalation in the federal government’s effort to confront the resistance of sanctuary cities,” Barr told an audience of officers at the National Sheriffs’ Association to roaring applause.

Some cities, like New York, have put laws in place that prohibit the sharing of information with immigration officials. Immigration officials have sent subpoenas to Denver and New York City over requests for information on immigrants about to be released from jail, and have petitioned federal courts to enforce the subpoenas, a highly unusual act that could end up with local law enforcement officials held in contempt if they don’t comply. In New York, Homeland Security suspended “trusted traveler” programs that speed their re-entry into the U.S. over a law that prohibits state officials from sharing motor vehicle data with immigration officers.

The attorney general said the Justice Department would be “robustly supporting” Homeland Security to use “all lawful means,” including federal subpoenas, to obtain information about suspects they are seeking to deport.

“These policies are textbook examples of misguided ideology triumphing over commonsense law enforcement, and it is the public and the police who pay the price,” Barr said.

The administration also sued the state of California to block a law that took effect Jan. 1 to ban new contracts with for-profit prison companies, including thousands of immigration detention beds that the federal government pays for in the state.

Trump has been trying since he took office to punish sanctuary cities. In 2017 Jeff Sessions, then attorney general, said such cities would not receive grant money unless they gave federal immigration authorities access to jails and provide advance notice when someone in the country illegally is about to be released from prison. A federal judge blocked the punishment from being enforced, and the cities got the money.

Federal authorities have tried lawsuits before, suing the state of California over its sanctuary law in 2018. A federal appeals court rejected the bulk of the administration’s lawsuit, though Barr said Monday he was hopeful the government would win before the Supreme Court.

That hasn’t stopped Trump from criticizing the policies and noting, in bloody detail, certain cases where immigrants in the U.S. illegally have committed crimes. On Monday, speaking to the nation’s governors, Trump said that it was essential the country comply with immigration enforcement requests.

“Jurisdictions that adopt sanctuary policies and instead release these criminals put all of Americans in harm’s way,” Trump said. “I know we have different policies, different feelings, different everything. But sanctuary cities are causing us a tremendous problem in this country. We have stone-cold killers that they don’t want to hand over to us and then they escape into communities and they cause, in some cases, tremendous havoc.”

But studies have shown immigrants are less likely to commit crime than U.S. citizens.

In the run-up to the coordinated messaging campaign by the Justice Department Monday, a directive from headquarters encouraging “robust local media engagement from every district” caused unease among some public affairs officials in the U.S. attorneys’ offices, according interviews and to correspondence reviewed by The Associated Press.

Some in jurisdictions that aren’t home to sanctuary cities were reluctant to host events because they did not think the matter pertained to them, and others were concerned that a public announcement could agitate relations with local law enforcement agencies that depend on the cooperation of immigrant communities, according to people familiar with the matter who spoke to the AP on condition of anonymity.

But officials sent a note later reassuring districts they were under no obligation to hold a public event.

Some still did: Nebraska U.S. Attorney Joe Kelly held a news conference Monday to highlight the benefits of local and state law enforcement agencies cooperating with the federal government to enforce immigration laws. Kelly said public safety can be jeopardized if local officials refuse to cooperate with Immigration and Customs Enforcement officials and not notify federal officials when illegal immigrants are arrested.

“Each year, many Americans fall victim to crimes committed by illegal aliens because certain officials choose to prioritize their own ideologies over their sworn obligation to uphold the law,” Kelly said. “We don’t have any of those problems here in the state of Nebraska.”

In Chicago, federal prosecutors planned a tweet but no news conference. Others around the country planned news conferences to voice support timed to Barr’s speech.

The U.S. attorneys in New York issued a joint statement, criticizing the state’s new “green light law” that allows immigrants to get drivers licenses without legal status. “Our citizens, lawful permanent and temporary residents, visitors and undocumented immigrants deserve better, and so do those who serve and protect them,” the statement read.

Barr also said Monday that federal officials were “meticulously reviewing the actions of certain district attorneys who have adopted policies of charging foreign nationals with lesser offenses for the express purpose of avoiding the federal immigration consequences of those nationals’ criminal conduct.” He also highlighted a lawsuit filed a few weeks ago against California’s governor and attorney general over a state law prohibiting private prisons.

Meanwhile, local officials in Erie County, New York, leveled criticism of the Trump administration’s decision to restrict trusted travelers during a news conference of their own.

Robert Restaino, the mayor of Niagara Falls, called for the Republican delegation to persuade the Trump administration to change the decision.

“If a conversation has to be had on the other issues, then please, engage in that conversation. Don’t penalize New York businesses and don’t cripple communities that are trying to make sure that they can grow and continue to grow in their local economy,” Restaino said.

The California lawsuit, filed in the Southern District of the state, says the detention facilities law usurps the federal government’s constitutional authority.

California Gov. Gavin Newsom defended the law Monday, saying for-profit detention facilities “contribute to over-incarceration, including those that incarcerate inmates, as well as those that detain immigrants and asylum seekers.” California Attorney General Xavier Becerra’s office referred questions to the governor.