With several states poised to gain or lose seats in the House, Republicans and Democrats gear up for fights in legislatures, courts.