There was an article (I believe on Noahpinion?) a while ago about how they don’t need to build cheap housing, if they built enough expensive housing to soak up all the tech workers, the price of everything else would drop enough that poor people would have plenty of places to live.
I don’t know if that would work, but it’s a theory...