European Union representatives have reached an agreement on binding CO2 limits for cars that could become law before the end of the year.