Developer settles long-running Manhattan apartments legal stoush