California cities scramble to comply with or fight major state housing law