In landmark ruling, judge likens AI training to schoolchildren learning to write.