The 2nd U.S. Circuit Court of Appeals in Manhattan confirmed that decision siding with the federal government Wednesday.

Sanctuary states like Washington must cooperate with immigration officials or risk grant money for law enforcement programs.

The decision conflicts with three other federal appeals courts.

But the 2nd Circuit said the law is clear that the U.S. attorney general can impose conditions on states and cities receiving federal grant money.

In recent years, Washington state has received several million dollars in these police grants. It’s paid for things like body cameras, police dogs or crime prevention programs.

Back in 2017, the Justice Department announced it would impose new conditions for cities and states that receive this money. It would require them to give federal immigration authorities access to jails and provide advance notice when an undocumented immigrant is about to be released.

The U.S. Justice Department says the move was intended to improve public safety.