Los Angeles and New York City banned most students from using artificial intelligence in classrooms this school year.