A revolt in India’s Supreme Court can be traced to a case linked to one of the most difficult phases of the Indian leader’s career