Former NYC buildings boss forced to resign