The move to import foreign beef infuriated Republicans in farm states facing tough reelections — and gave Democrats and independents a rare opening with rural voters.