To put the TG back in orbit, enter SM mode, open the Task Group screen --> History/Officers/Misc --> On the right, you set the position to Sol System, Earth (or whatever your homeworld is) and hit save. If your HW is also your captal, you can also just hit the Captial button.