National groups are spending money in battleground judicial races with the hope of liberal majorities in two years.