Extraordinary coming together of farmers, campaigners, food industry figures and experts in the EU should result in around 300 million pigs, laying hens, calves, geese, ducks and quail no longer being kept in cages every year