The problem is, it’s not clear exactly what is being required of this student. The school has contradicted her claims, so it’s hard to know what to believe.
If a mathematics student refused to learn multiplication, or a medical student insists on learning the anatomy of only one gender, is it a use of force by a government school to say the student hasn’t completed the requirements for the degree?
Your analogy is wrong. Mathematics can be proven. Free will or lac of is a philosophical idea. They are trying to force her to accept a catechism.