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