Jury says prison failures led to death