Since Sasuke has the Rinnegan he should be able to use the Samsara of Heavenly Life Technique, but it will cost him his life since he is technically trading his life for the revival of others. He will also have to summon the King of Hell.
Samsara of Heavenly Life Technique is a reincarnation ninjutsu used through the Outer Path, which can infuse new life into the bodies of those who have died in exchange for the user's own life.
Then the part about the King of Hell...
To perform this technique, the user summons the King of Hell, which then releases the souls of the deceased from its mouth.
Source: