A NSW judge has slammed the running of a Port Stephens Council legal case