Correction:
Discrimination, per se, is not illegal.
Illegal discrimination means you were fired because you belong to a protected class like race,gender age etc. Nothing in your post suggest that is the case here and if so you need to prove it. What you should do is talk to the Union about...