With Silicon Valley’s sky-rocketing housing costs and long commutes, tech companies are finding their own solutions.