Failing to allow the student to use the bathroom embarrassed the student, who then cried, ruling says