A federal judge has ruled that New York City is immune from suit over its installation of a diesel-fueled backup power generation system for its emergency operations center in the World Trade Center complex — the presence of which insurers claim contributed to that building’s collapse on Sept. 11, 2001.

Unlike the two main World Trade Center towers, Seven World Trade Center was not struck by airliners. But the collapse of the two main towers showered the adjacent 47-story building with burning debris. The resulting fire caused that structure to collapse itself hours later.