The matter proved a massive election-year boon to Republicans.