I'm sorry to hear how you were treated.
You don't need to apologize for an absence that had a legitimate reason. If you are treated in a discriminatory or illegal way, you can report that to the chair of the department and/or to the office of equity or diversity if there is one.
If health...