No, the SCOTUS didn't have an opportunity to reduce partisan gerrymandering because it has no such authority.
It's not a legislative branch. It doesn't have the authority to do things outside of law.
Partisan gerrymandering is allowed constitutionally. SCOTUS can't change that, it can't rewrite the constitution. That requires a democratic processes, not an authoritative one.