We had a discussion of something much like this a while back
In summary, Jupiter pulls both the Earth and the Sun almost equally. Because the Earth and Sun are not precisely the same location, there is a differential effect (the Earth gets pulled by a slightly different amount than the Sun gets pulled), and this differential perturbation does affect Earth’s orbit slightly, but it’s only a slight effect.