European officials have agreed new rules to protect food-industry players from unfair trading practices.