Judge rules for California baker over same-sex wedding cake