Deal reached on emissions targets for agricultural sector