What California lawmakers did to regulate artificial intelligence