This is a boy problem, a male problem. The school should be leaving the girls undisturbed in girls' single-sex space.
The school should be teaching the boys to "Be Kind" to other boys, to accept that males have very many different varieties and personalities.
The bandwidth of being male must surely be expanded to include all males, not just those males who correspond to turgid old male sex stereotypes for male.
And girl is a child human female; a woman is an adult human female.
Boys and men have their problems yes; and I hope that we as a society can try to help them with their problems.
But NOT by robbing women and girls of their own rights; NOT by forcing girls to give up their own boundaries, their own autonomy, dignity, privacy, safety. NO.
XY can never, ever be XX. It is cruel, to everyone, to try to pretend that that humans can change sex. Because we can't.