A Supreme Court decision may see the release of thousands of prisoners, including the former leader.