Yes, he definitely violated the policy--and I do hope he gets into trouble. I'm sorry all this mess has happened. Are the tests essay or are they multiple choice? I'm just hoping the teacher doesn't have any leeway with scoring the answers.
Dear one, all I can say is get in contact with your psychiatrist ASAP and see if your meds can be changed, etc. Also, check to see if your school has a policy where medical allowances can be made, even a policy where you could drop a class and not get penalized, if it comes to that.