They got the locomotives and tracks to the crash site somehow, so presumably they know a thing or two about moving heavy stuff around.
Doing that just takes a lot of people and labor (you've probably seen old films of track laying from the late 1800s-early 1900s).
They wouldn't install a switch, as that would be too costly for something so temporary; so they probably just broke the track, moved it sideways a bit, connected it to the new "spur", moved the trains/cars onto it, then reconnected it back to the original line to allow traffic thru. Then basically the reverse to move in equipment to dismantle/haul away the remains.