They were liable for copying the books in the first place, regardless of whether or not they trained the AI with them. Read the opinion.