In the wake of two landmark legal victories scored by artificial intelligence developers this week, Microsoft Corp. has become the latest tech giant to face allegations that it used pirated copyrighted material to train its own AI models without the writers’ consent.