A controversial housing bill that would override local zoning laws to expand high-density housing near public transit hubs was passed by the California Assembly on Thursday with a vote of 41 to 17.