The judge ruled Friday that the board had violated the constitutional rights of former Gloucester High School student Gavin Grimm, who is now 20 and a graduate of the school.

Grimm transitioned about four years ago, and during his sophomore year he was dressing as male and using boys' restrooms at school.

He alleged the county school board put in place a policy that banned him from using either girls' or boys' restrooms, after it received complaints from others in the community. The school constructed single-stall, unisex restrooms that he could use, but they weren't available in all parts of the grounds, according to court documents.

The judge, Arenda Wright Allen, awarded him one dollar in damages and told the school district to pay his court fees. The district also must update his records to indicate he is male.

Read More