Voters won a huge battle with the oil industry – proving that we can’t save the planet without robust democracy.