California legislature votes to become sanctuary state