Russia's SC takes side of terminally ill prisoner from Dagestan