The contractor had been penalized by the city's safety regulator more than a dozen times in the years before it was hired to renovate the complex.