A judge has accused police of operating a "joint criminal enterprise" to take down drug kingpin Tony Mokbel by using his lawyer Nicola Gobbo as an informer.