Stay Updated on Developing Stories

US judge rules against Trump administration in suit over policing grants to 'sanctuary cities'

Washington(CNN) A federal judge ruled against the Justice Department on Friday in a lawsuit over withholding federal money from so-called sanctuary cities, the latest blow to the Trump administration's hardline immigration tactics.

The lawsuit challenged the Justice Department's efforts to punish sanctuary cities by withholding a key law enforcement grant the department said was available only to cities that complied with specific immigration enforcement measures.

In July 2017, then-Attorney General Jeff Sessions announced that applicants for Edward Byrne Memorial Justice Assistance Grants would have to comply with federal immigration enforcement in ways that were unlike years past, like allowing federal law enforcement agents to have access to detainees in jails for questioning about their immigration status.

According to the ruling, the seven states involved in the lawsuit, as well as New York City, had been receiving the grant money since Congress created the fund for the "modern version of the program in 2006," and the funds "collectively totaled over $25 million."

"In 2017, for the first time in the history of the program, the U.S. Department of Justice ('DOJ') and Attorney General (collectively, 'Defendants') imposed three immigration-related conditions that grantees must comply with in order to receive funding," wrote Judge Edgardo Ramos, of the US District Court for the Southern District of New York, in his ruling.

New York Attorney General Barbara Underwood led the suit and was joined by New Jersey, Rhode Island, Connecticut, Massachusetts, Washington state and Virginia.

Underwood said in a statement on Friday that the ruling was "a major win for New Yorkers' public safety." CNN has reached out to the Justice Department for comment.

This isn't the first ruling of its kind -- in April, a panel of three judges from the 7th US Circuit Court of Appeals upheld a ruling in favor of the city of Chicago that blocked the Justice Department from adding new requirements for the policing grants.

CNN's Elizabeth Hartfield and Tal Kopan contributed to this report.
Outbrain