State legislators approved a measure early Saturday morning that would make California a sanctuary state.