Although they were officially designated to study just Jupiter and Saturn, the two probes were able to continue their mission into the outer solar system.
Even though they were only supposed to study Jupiter and Saturn, the probes continued to their mission into Uranus and Neptune.