The European Union says it wants to become the first major economy to achieve net zero emissions by 2050.