If you do this a million million times you might slow the planet down to where it has no more energy to usefully donate, but a one-off maneuver is negligible.
I do think the idea of 'throw a solid mass rather than hot gas', but for a totally different purpose: stealthy change of orbits in space-warfare.
Okay, they’re in polar orbits [1].
> going partly sideways and partly up
Wat? (“Up” is ambiguous. Do you mean northward on the first half of their polar orbits? If so, it’s the same as sideways relative to a ground-based observer.)
> they can join and continue traveling up
As in parallel to the pole? “Up” away from the North Pole? How did they accelerate from an orbit to this trajectory?
No matter how you spin it, if you want these two rockets to go in exactly opposite directions and meet up again, The point at which they meet would _not_ be partially sideways and partially "up" (away from the earth). at the point where they meet, they would be going 100% parallel to the ground, and 180degrees from each other (ie, direct head-on collision).
This is ignoring the fact that minimal stable orbital velocity (the minimum speed for your rockets to go 'around' the planet, is about 7.8km/s, or 17 thousand miles per hour. and because they're going in opposite directions, thats 34 thousand miles per hour of effective collision speed.
Now, if you're suggesting instead, a full 'escape' velocity from the earth that allows them to both enter parabolic trajectories, and meet at some arbitrary point in the distance, I hope you've thought of a way to allow your two spacecraft to survive an explosion that launches them from 0 m/s relative to each other to roughly 22km/s relative to each other (49 thousand mph), in some semi-instantaneous event. If we assume this 'push' from each other happens over 10seconds (this is generous), that's gaining 2.2km/s/s, which is 224G for 10 seconds.
There isn't a 'hack' for defeating orbital mechanics sadly. It takes expenditure of energy, and significant amounts of it.
Or the two ships could be a spinning pair tied by a cable, and then the cable is severed. To make a fast spinning pair, start two spinning pairs in parallel planes and opposite directions, and make them accelerate against each other electrically.
There are probably objections to those too, like size of railguns and strength of cables, and then engineering can find answers to that, and so on.