Greens score win in first battle over California’s vast reserves of shale oil