The Supreme Court will grapple with the legality of partisan gerrymandering in March when it hears arguments challenging congressional-district maps in two states.