The U.S. Court of Appeals for the Second Circuit on Tuesday upheld the constitutionality of a Suffolk County policy that allows police officers to temporarily seize firearms from the homes of individuals taken to mental health facilities for evaluation.

A three-judge panel of the Manhattan-based appeals court found that the county’s policy fell within the “special needs” exception to the Fourth Amendment’s prohibition against warrantless searches.