Zoning laws, occupancy limits, and short-term rental restrictions are keeping housing off the market and driving up costs.