California state legislature passes same-sex marriage bill