The EU is in effect much closer to a confederation than a federation. A lot of the problematic aspects of how the EU is set up are attempts to work around the limitations imposed by not having sufficient public support to reform it into a more federal structure. To some that's a feature, of course, to others it's a significant nuisance.