The legislation represents one of the most sweeping efforts in decades to increase the supply of housing and bring down prices.