Court of Appeal told provinces told they can’t head off potentially catastrophic global warming on their own.