The state allowed the gender on the birth certificate to change from male to female, according to the family’s lawsuit.