The European Parliament and EU member states have agreed a target to cut carbon emissions by at least 55 percent by 2030.