The battles over new congressional lines are moving from state legislatures to courtrooms in a number of key states.