The lawsuit takes aim at Apple's decision to integrate ChatGPT into the operating systems of its smartphones.