It's a stretch to read this as injecting into politics.
The Court didn't do anything to the election. It vacated a lower court ruling that has been clearly shown to have been in error, sending the matter back to them for further processing.
The drawing of maps is STILL subject to that lower court's oversight.
This is how the machinery of the legal process works without regard to politics. This was the court STAYING OUT OF politics, leaving it to the lower courts to adjudicate.