You would have to provide every parking spot an outlet unless you're willing to deal with having to potentially reshuffle renters' parking spots whenever someone needs one with an outlet. A lot of apartments also have outdoor or carport parking, which means the outlets are easily accessible to others. You can mitigate that somewhat by putting locks on them, but that's only useful when they're not being used. When in used they will by necessity need to be unlocked and can then be hijacked by someone else. You would also have the massive capital outlay from the owner(s) to install the infrastructure, since it will be a significant amount of electricity that is being used, and will thus need to be attached to each units' electrical meter. Not every building may have room for adding that kind of service as well, plenty of older apartment buildings that are maxed out on how many amps each unit gets. I've lived in places where I had to choose between running the heater or running the stove because both at the same time would blow the master breakers. And even if that's not the case, the building/complex as a whole may not be able to install even 50% outlets that support the full 15A. In a 100 unit building, even with just a single spot per unit, if half those spots add 15A per spot, the incoming service from the street may not be able to handle that without upgrades either; another massive capital outlay that no one will want to do unless forced to.
I think there are too many edge cases to outright ban ICE cars so soon. That's why I say that there needs to be a push to also improve infrastructure, including forcing older infrastructure to also be improved. It can be done, but with the scope of the problem, it will not be nearly as soon as the proposed bans would have taken effect. It would also take probably an impossible amount of political will. You'd have to grab the proverbial third rail and hang on long enough to make things happen before it fries you, but fry you it will.