Sacked worker forced to pay for using ‘plain wrong’ AI in landmark case