Complex sentence: The giant planet's gravity bent the spacecraft's flightpath downward and away from the ecliptic plane, placing it into a final orbit around the Sun's north and south poles.
Split into simpler sentences: The giant planet's gravity bent the spacecraft's flight path downward and away from the ecliptic plane. This put it into a final orbit around the Sun that took it past the Sun's north and south poles.