President Trump on Thursday said his administration is moving forward with withholding funding from sanctuary cities after an appeals court ruled that such a move was legal – part of a broad push by the administration to end the controversial policies that it says makes Americans less safe.

“As per recent Federal Court ruling, the Federal Government will be withholding funds from Sanctuary Cities. They should change their status and go non-Sanctuary,” he said. “Do not protect criminals!”

COURT HANDS TRUMP WIN IN SANCTUARY CITY FIGHT, SAYS ADMINISTRATION CAN DENY GRANT MONEY

The 2nd Circuit Court of Appeals in New York last month overturned a lower court ruling that stopped the administration’s 2017 move to withhold grant money from the Edward Byrne Memorial Justice Assistance Grant Program, which dispenses over $250 million a year to state and local criminal justice efforts.

The decision conflicts with rulings from other appeals courts across the country concerning sanctuary policies, indicating a Supreme Court review is ultimately likely.

New York City and liberal states, including New York, Washington, Massachusetts and Connecticut, sued the government, and the U.S. District Court for the Southern District of New York backed them – ordering the money be released and stopping the government from putting immigration-related conditions on grants.

But the appeals court ruled that it “cannot agree that the federal government must be enjoined from imposing the challenged conditions on the federal grants here at issue.”

Sanctuaries policies limit local cooperation with immigration authorities and bar law enforcement from complying with Immigration and Customs Enforcement (ICE) detainers – requests that ICE be alerted when an illegal immigrant is being released from local custody.

DE BLASIO IGNORING ICE PLEAS FOR COOPERATION ILLEGAL IMMIGRANT CRIMINALS, OFFICIAL SAYS

Proponents of sanctuary cities have argued that it makes communities safer by encouraging illegal immigrant victims of crime or witnesses to cooperate with law enforcement.

“The Trump administration’s scare tactics destroy trust in law enforcement. The day our police ask for immigration status is the day people stop reporting crimes and sharing information. It’s the day we stop being the safest big city in America. We won’t let that happen,” New York Mayor Bill de Blasio said in January.

But administration officials have pointed to a host of cases when an illegal immigrant has been sprung from custody after a detainer was ignored and gone on to re-offend.

In a letter to de Blasio last month, ICE Acting Director Matt Albence noted that ICE’s New York City Enforcement and Removals Office issued detainers on 7,526 subjects who had criminal histories, including 3,500 assaults, 1,500 DUIs, 1,000 sex crimes, 1,000 weapons offenses, 500 robberies and 200 homicides.

CLICK HERE TO GET THE FOX NEWS APP

The administration has deployed elite Border Patrol agents to sanctuary cities to help ICE track down and detain illegal immigrants.

The Justice Department recently announced a slew of measures, and Trump has called on Congress to pass legislation that would allow victims of crimes committed by illegal immigrants to sue sanctuary cities and states.

Fox News' Bill Mears contributed to this report.