Actually, California is the second state to ban fluorescent lamps; Vermont was the first. Other states have bans pending. Likely CFLs will be banned for the whole nation pretty soon.
I remember other lighting bans in California which by themselves had little effect or were counterproductive. It was the availability of more efficient lighting and the monetary savings that really drove the changes. About 25 years ago, California banned medium-base screw fixtures in new construction with the idea that fluorescent fixtures would become the norm. However, the small candelabra sockets were OK, and there was no limit on the number of sockets in a fixture. So, fixtures appeared with 3-4 (or more) candelabra sockets, and incandescent candelabra bulbs of up to 60 watts were readily available.
I remember an apartment we had constructed in 2009. All the ceiling fixtures had candelabra sockets. Candelabra CFLs were hard to find and expensive. So after the inspection, I changed all the sockets to medium base and installed CFLs (now have LEDs). Another common trick at the time was to install a small cheap fluorescent fixture over bathroom mirrors for the inspection, then swap for a fancy medium socket fixture.
The California law may help but will be easily circumvented for residential installations for those who want to. However, most folks like LEDs compared to fluorescent, so there should be little motivation to go around the ban. That was not the case for fluorescent versus incandescent lamps.
The law makes sense for commercial installations.
Mike in California