Inmate prevails in prison attack lawsuit