Standards are universally created by industry organically, not created by governments.
I have to serve five different charging ports (Magsafe, Lightning, USB C, micro USB, and some proprietary thing for my watch). The watch charger only comes with an USB A cable, so now either I need an extra dongle or two charging bricks.
USB C was introduced in 2014 and really came about in 2016. These companies had six+ years to converge on something reasonable. But they didn't. Be it out of greed or plain laziness.
So yes, this law is an improvement.
Or that the standard that could have happened, never does. We can never know what future we could have had if not for actions in the past.
It's not a law which says "the industry must use connector X", but a law which says "the industry must standardize on a single connector" - which is exactly what you seem to be asking for.
Besides that, there are plenty of industry standards developed well before the first devices come on the market. PCIe 6 was finished before the first PCIe 5 product even hit the shelves, DDR5 was done two years before the first CPU used it, and I bet someone is working on a USB 5 already.
Unless by doing so you harm the competitiveness of the device. Additionally if a device still has USB-C no one's going to design peripherals for a device and artificially limit their market if they don't have to. This makes moving to new standards difficult or impossible.
The only disagreement is in how much of an effect it has.