Their function is to interpret law. A panel of judges, can, and often do offer opinions at odds with each other. In that case the majority rules. If a right, or rights, of any minority, are effected, so be it, but their primary task is to render an intepreted opinion.
Alas that the court has become so political.
But I expect them to do the right thing regardless.