tracking cookies are so obviously beneficial to e-commerce that they passed an entire law to disclose them because people... liked them so much?

I don't exactly see how these two statements are contradictory. Policy is about conflicting interests.