The New York Attorney General's office has secured a $4 million settlement from 29 New York City landlords over allegations of a scheme aimed at deregulating rent-stabilized properties.