Eighth-grade pupils in New York will not be allowed to use AI tools, including chatbots, in schools.