California Senate votes to allow gay marriages