Losses in Virginia and elsewhere are likely to spur a push for a tax overhaul that would endanger Republican incumbents in higher-tax states.