A federal judge has thrown out a lawsuit from a coalition of advocacy groups against the Rensselaer County Board of Elections over a proposal to share voter registration data with federal immigration authorities, saying both parties shouldn’t have acted so quickly.

U.S. District Judge David Hurd of the Northern District of New York wrote Tuesday that both the advocacy groups, and county officials, should have taken a breath over the whole ordeal.