A BART train rides past above a homeless encampment on 5th Street between Bush and Castro streets in Oakland, Calif., on Thursday, May 18, 2017. (Ray Chavez/Bay Area News Group)

SACRAMENTO — After years of havoc caused by budget-busting rents and runaway home prices, a collection of affordable-housing bills negotiated with Gov. Jerry Brown have passed the Legislature.
With much suspense and arm-twisting, the Assembly on Thursday night narrowly passed the most controversial legislation: Senate Bill 2, a measure to create a permanent funding source for affordable housing through a new real estate fee. The last two lawmakers — Assemblymen Marc Levine, D-San Rafael, and Adrin Nazarian, D-Van Nuys — created an hour of drama by waiting to cast their deciding votes.
“For any of you who are not yet ready to vote for this bill,” said Assemblyman David Chiu, D-San Francisco, who has championed the housing effort, “I ask you to do one thing — to think about the face of your constituents.”
One Republican lawmaker, Assemblyman Brian Maienschein, of San Diego, supported it.
“To do nothing for me is not an option,” he …