Valuation dispute could imperil thousands of affordable housing units in state