Shadow does not stick around. Once the world is safe from the Metarex, he is gone — effectively dead — until Eggman hauls him back to his lab and begins reviving him.
That thread follows the story of Sonic Adventure 2, and the payoff arrives at the start of Sonic Heroes, where Shadow is back on his feet.