Santos' coal seam gas wastewater facility in the Pilliga forest was judged legal by the court.