The proposal would have asked voters if they wanted to require public schools to restrict access to bathrooms and sports based on the gender denoted on a child’s birth certificate.