Germany and France have reached an agreement over a European Commission plan to introduce CO2 emissions limits.