The European Parliament has backed a comprehensive plan to tackle the problem of childhood obesity.