New York City and a coalition of states filed separate lawsuits against the Trump administration Wednesday for withholding a federal law enforcement grant from so-called “sanctuary” jurisdictions.

The lawsuits seek to strike down conditions to the grant that require states and localities to cooperate with federal immigration authorities.