EU sets ambitious 2040 emissions goal, aiming to boost green investment, energy security and climate resilience.