California case comes as the U.S. Supreme Court prepares to rule on a similar dispute involving a Colorado bakery