WASHINGTON — The Supreme Court on Friday blocked rulings from federal courts in Ohio and Michigan that had struck down voting maps in those states as unconstitutional partisan gerrymanders. Both courts had found that Republican legislators had violated the Constitution by drawing voting districts to hurt the electoral chances of Democratic candidates.

The Supreme Court’s move was expected. The justices will soon decide, in a second pair of cases, whether voting maps can ever be so warped by politics as to cross a constitutional line. The answer to that question, in pending cases from Maryland and North Carolina, will very likely affect the cases from Ohio and Michigan.

Friday’s orders were brief, gave no reasons and did not indicate that any justice had dissented.

In the Ohio case, a three-judge panel of a Federal District Court found that Republican state legislators had drawn maps that allowed their party’s candidates to gain an outsize partisan advantage in elections. Ohio is a swing state in which presidential and statewide elections can be close. But the state’s congressional maps, in effect since 2012, have consistently yielded delegations of 12 Republicans and four Democrats.

The panel ordered new maps to be drawn for the 2020 election, a ruling that the Supreme Court has now put on hold.