Well if SHE (who is referred to as 'him' in the article) has a vagina and is instructed to use the Women's restrooms in the school ---- as are ALL other young women (who ALSO have a vagina) in the school ---- then she is NOT being discriminated against because of Her gender.
Simple!