Developers are cheering the adoption of a law to stem foreclosures in New Jersey, calling it a move that supports the housing market while preventing the buildup of vacant properties.