In its lawsuit, the city cited negligence by the gas company, the building’s owners and managers and a contractor.