The Grammy winner’s criminal trial on racketeering and gang charges was the longest in state history.