A judge has praised officers who helped bring down a cannabis operation involving students in Leeds that potentially could have had been worth up to £20 million.