The contractors and the city failed to implement an effective system for deterring such a threat, the suit said.