It’s going to create turmoil no matter which whey they rule.
They are in a definitely unenviable position, and they just have to do what’s right (ruling solely on constitutional grounds) and step back. Whatever happens is not their fault, but the fault of the forces that have built up this crisis. The justices can’t stop it no matter what they do.