Maine's highest court says a transgender student should have been allowed to use the bathroom of her choice.

The Supreme Judicial Court ruled Thursday in a case in which lawyers for a fifth-grader argued that her rights were violated when she was required to use a staff bathroom instead of the girls' restroom.

Nicole Maines' family and the Maine Human Rights Commission sued in 2009. Maines, now 16, is a biological male who identified as a girl beginning at age 2.

School administrators across the country are grappling with the issue.