In Pricey Silicon Valley, a Plan to Preempt Homelessness