If that's in the contract, then it immediately nullifies it. You cannot be stopped from joining a union in the EU if you wish. No contract can countermand that basic right.
Dont take my word for it though, just ask anyone with more than 10 seconds of legal or HR training.
Are you guys that dumb as to believe that that sort of thing is in the contract?
I really, really hope not.