The net effect is almost as if we "bounced" off the front of the planet. From the planet's perspective we approached at the speed U+v, and therefore we will also recede at the speed U+v relative to the planet, but the planet is still moving at (virtually) the speed U, so we will be moving at speed 2U+v. This is just like a very small billiard ball bouncing off a very large one.