I believe it was largely a way to try and unify the EU to combat recent turmoil. By taking a stand against the evil American tech innovators, the EU can look to its populace and say they accomplished something that a single nation could not have
I’m being ironic, a decent chunk of Europeans want this (I’d say a majority but I don’t have hard numbers).
It's never been portrayed as "anti-US", and it isn't. It's pro-privacy, and that's an entirely different thing. While I think certain US companies have aggressively persued certain business strategies which are very much anti-privacy, so have many companies around the world, and this legislation is long overdue pushback against some very dubious business practices many people are very, very uncomfortable with.