If only a mosque had brought the lawsuit, there would have been a 9-0 vote upholding the 1st Amendment.
The same reason the gay couples didn’t choose Muslim bakeries to (not) bake their wedding cakes.