California court in discrimination lawsuit says business owner acted lawfully while upholding beliefs about marriage