A law restricting the activities of big investors in residential real estate could mean less cash to build new supply.