A new state law that allows denser housing development near major transit stops goes into effect in July, opening the door to construction of more than 1 million new units in California's urban centers.