Governor Gavin Newsom’s legal threat comes as authorities brace for further demonstrations over immigration raids