America’s housing market is finishing a year of high prices, sluggish sales and elevated mortgage rates. But there are factors that could give it a boost next year.