The justices stayed out of the gerrymandering fight, to the advantage of Democrats in the state.