The European Parliament has endorsed a final deal agreed with EU member states on regulations on the composition of infant formula, baby food, diet replacements and special medical foods.