The sweeping ban on AI for more than half a million students and teachers comes just days before they head back to school in the nation’s biggest school district.