Gas prices got a lot of attention in the midterms, but high housing costs are a bigger chunk of people’s budgets. In cities around the country, voters approved more spending on affordable housing.