A "Limp Home" Trail repair would be:
Pull the inner shaft and plug with rags ( shop rags, paper towels, whatever ).
Leave the outer shaft (nutted and torqued) in the bearing.
The gear lube will only leak down to the bottom of the tube level in the diff. The rags are to keep dirt out and leaking on Off-Camber stuff.
Retaining the outer shaft will keep the Unit Bearing together for the ride home. Don't forget the outer shaft(!), people have died when the Unit Bearing separated on the highway.
I have driven home on a stock shaft that broke on the trail... It tore up the seals something awful. Not recommended due to safety reasons.
BTW: If you decide to use this method while waiting for a set of gears, it's OK. I would leave the U-Joint out of the equation though, why dirty up a good one?