Skyrocketing rents and home prices have been a major part of voters’ economic pain. New spending will go toward building and subsidizing more housing, and helping people avoid homelessness.