Nothing in New York law gives state and local law enforcement agencies the authority to detain inmates for U.S. Immigration and Customs Enforcement on immigration charges, a state appeals court said in a ruling aimed at a policy initiated by Suffolk County officials.

The unanimous ruling by the Appellate Division, Second Department rejected the Suffolk County Sheriff’s Department’s policy of keeping inmates who are the subjects of ICE detention or deportation orders for up to 48 hours after the time that they normally would have been released and immediately notifying immigration authorities.