Washington (CNN) The Supreme Court appears deeply divided about whether it can address partisan gerrymandering and come up with a standard to decide when politicians go too far in using politics to draw congressional districts that benefit one party over another.

Hearing a case on Wednesday challenging a district in Maryland, several of the justices suggested that the issue could be addressed by the courts, but grappled with how to devise a manageable standard to govern future legislative maps.

How the court rules could dramatically impact future races, as Democrats try to win back the House amid widespread unhappiness at President Donald Trump. Recently a state court in Pennsylvania redrew congressional districts there, possibly serving to erase the Republicans' 12-6 district advantage.

Wednesday's case was brought by a group of Republican voters in Maryland who say Democrats went too far in redrawing districts after the last census.

At one point during their one hour of oral arguments, Justice Stephen Breyer wondered whether the court should take the two challenges it has already heard dealing with maps in Wisconsin and Maryland, and another case out of North Carolina and hold arguments again next fall.

Read More