A controversial overhaul of voter rolls threatens Modi’s standing and has breathed new life into India’s battered democracy.