EU countries aren't forced to stick to the union. If they dislike EU decisions, they are free to leave and do their own thing at any time. This is very unlike US states that aren't allowed to secede from their union.
Whether one can opt out or not, whether someone likes it or not, and whether this state was reached voluntarily or by force, is irrelevant here - definition of sovereignty is pretty much clear