On Wednesday, a federal court determined that the Trump Administration can legally withhold federal funds from “sanctuary cities” that defy federal law to protect illegal aliens, according to The Daily Caller.

The ruling was made by the 2nd Circuit Court of Appeals, based out of Manhattan, and overturns a previous ruling by a lower court that the withholding of funds was unconstitutional. The ruling now clears the administration to withhold federal funds from any such cities, as well as entire states, that continue to harbor illegals.

The lawsuit against the administration had been jointly filed by New York City and seven sanctuary states: Connecticut, Massachusetts, New Jersey, New York, Rhode Island, Virginia, and Washington.

In response to the ruling, the Trump Administration released a statement celebrating it as “a major victory for Americans,” but adding that “its full scope will not be realized until the practices of granting nationwide injunctions and associational injunctions are stopped.”