Good morning!
The actual court cases on this issue (exclusion of homosexuals in the BSA) began in 1990, according to the ACLU. And lambdalegal.org shows the Berkeley anti-discimination ordinance as 11/9/78 so Berkeley in 1997 was merely setting itself up to punish the Scouts by adding the "sexual preference" clause.
Interestingly, the Scouts were first granted the berth in a 1936 deal in which Berkeley got 80,000 tons of rock from a Boy Scout camp in exchange for the perpetual free berth.
It's PC harassment all the way. Maybe the Scouts should ask for their rock back from the Berkeley welshers.