Local councils have warned of potential hazard to population from pollutants at Leviathan offshore field, but judge says they failed to refute state's assertion action is safe