The EU’s leaders should learn from their mistakes, rather than sacrificing the environment.