Actually the courts did not. BSA took a homosexual leader to SCOTUS and won the case. A few years later, even though the highest court in the land specifically stated they did not have to include homosexuals, the senior leadership caved and decided to anyway.
Did California courts agree with them?.