BRUSSELS – European Union leaders agreed on Thursday for the bloc to move ahead with setting a 2040 emissions target, which it is racing to do ahead of next month’s global U.N. climate talks, despite growing pushback on green measures from some member states.