A move aimed at cooling the nation’s booming real-estate market.