Russia's Supreme Court has ordered the release of Ildar Dadin, an opposition activist. He was jailed in 2015, after becoming the first person to be convicted under new laws on protests.