It is the responsibility of government to ensure a well functioning society.
It appears clear to me that the government is failing its responsibility. The governments could have averted this crises by not zoning their municipalities for 3x, 4x, 5x more jobs than housing units within their borders. Its not like many of these offices have existed forever, they willingly allowed the creating of new offices, with out the requisite housing to support. (See, New Apple Spaceship HQ, Facebook campus, and expansion in Menlo Park, Google's constant expansion, the numerous new office parks that have sprung up in every city on the peninsula in the last 10 years).
Much of this is jobs/housing imbalance is a result from prop 13, which disincentivized housing construction by making the development of commercial property more net tax advantageous (taxes in minus services provided) when compared with housing.