I was discussing this in a camera forum and the concern was primarily over existing cameras and grandfathering. Pentax (What I shoot) currently sells several cameras that either do not use USB-C and/or don't have the ability to charge in camera. From my understanding, the way this law is written does not distinguish between cameras with sealed batteries (which is rare because battery changes are often needed in the field), and those that charge outside the camera. There is also no clear grandfather clause for existing devices still being sold. If not grandfathered, it can lead to a lot of e-waste.
I'm guessing you're not from the U.S, because there would be just as much, if not more pushback against a law like this. For one, USB cables are weak compared to dedicated charging cables of the past. When I got my first phone prior to the days of smartphones, the charging cable would last almost forever. There was also universal standards back then so you could still buy aftermarket cables if need be. Now with USB-C, I'm replacing a cable 2 to 3 times a year because the wires break internally.
Aside from the camera problems, another is that this law will apply to laptops. Gaming laptops require more power than USB-C can provide. To get around this, they are giving laptops another couple years or so to comply, with the expectation that USB cables will just automatically be improved to handle that much power. That's a big assumption that is going to risk killing a decent segment of the laptop market if it doesn't happen.
I kind of eluded to this in my first post, but the law in general looks like the people that wrote it believe all electronic devices work the same as smartphones, with low powered sealed batteries. If this were in the U.S, there's a big chance it would wind up in the court system over these sorts of issues with it, and rightly so without changes in the language. Ambiguity in a law can make it unenforceable here.