Final two charged in 2018 case of beating death of inmate pleads guilty