New York Community secures approval for longest-pending bank deal since 2017