Personally I don't know too much about this case. But courts can find corporations liable, even if they did a terrible job. It's the same logic as putting the getaway driver in jail for attempted robbery, even if they dropped the clutch and stalled the car. McKinsey could have done a terrible job but also been liable according to courts (who probably just assume white-shoe consultants did a good job anyway).