Can you refer to specific laws on restrictions to building a website?
The only one I could find was related to the Americans with Disabilities Act (ADA) and of course GDPR, but that's related to handling of personal data.
I think the cookie law is a bit misguided. The problem (that they should want to solve) is privacy invasion and tracking, but instead of saying that, they flipped it around and allowed an exception for a vaguely defined category of "strictly necessary" cookies. I believe their intent was entirely good.
If they said what they wanted to say, the law would essentially say "don't violate privacy without explicit consent." I'm relatively OK with that; that's not telling me how to build websites, that's just making certain harmful activities illegal. It wouldn't be very different from saying "don't distribute malware that attacks your users."
In its current form, I'm not too thrilled with the cookie law. And I sure as hell don't want lawmakers adding more, worse, laws on top of that. Go too far in that direction and they're turning software into nagware (I loathe cookie popups, I loathe google's "privacy reminder", I loathe applications that blast me with notifications and hints, I loathe permission dialogs, I like Unix's Rule of Silence) while making its development a legal minefield.
I want to be able to write FLOSS software (or websites) with a user interface that pleases me, and EU is looking for ways to make that illegal. In a manner of speaking, I hope they do just that, then people who want pleasant software have more reason to organize an underground software liberation movement where no fucks about shit laws are given.