Unfortunately we have bad incentives aligned here versus stated goals.
Manhattan and San Francisco are like Japan and Argentina in economics. They're just not the same market as most places. In Manhattan in particular the value really is the land.
Building a bunch of housing in the middle of nowhere for unhoused people isn't going to work unless you also provide them heating, transportation, etc. The least expensive way of doing that is to make it dense like a city. At which point you're just building a planned city, which is fine, but not particularly in the purview of the US.
Another contributor to the problem was outside speculators buying residential properties. Specifically Berkshire Hathaway and Zillow come to mind. But I'm sure others were doing it too. It should be illegal.