Shadow becomes available once you have completed Story Mode with both the Hero team and the Babylon Rogues.
That means finishing Sonic's campaign and then finishing the Rogues' campaign, which is where most players get stuck, since the Babylon story is generally the tougher of the two.
Once both are cleared, Shadow shows up in the character select screen and can be used in the other modes. He is worth the effort if you like his high-speed, aggressive handling compared with the default roster.