Mostly it seems to be because they're making a federal civil rights complaint. Gross negligence and civil rights complaints tend to defeat immunity, though I don't know if that'll be successful against the city itself.
If they can prove malice on the city's part, immunity goes out the window. And they may be able to do that.