US student told to change beliefs to graduate