A judge has not banned Mark Latham from repeating a defamatory, sexually explicit remark about a rival MP after finding there was no real risk he would do so.