New York legislation would tell publishers how they can and can’t use artificial intelligence.