As of a couple of years ago, at least 1,300 multifamily buildings in New York City were either overmortgaged or in foreclosure, according to the Citizens Housing & Planning Council. In a recent study, the council, a nonprofit research organization, also found that foreclosures had a harmful ripple effect and housing-code violations spiked in nearby buildings.