To unlock Shadow, head to Starlight Carnival Act 4 and clear it as Super Sonic five times. It takes a bit of grinding, but stick with it and Shadow will be yours.