The companies had accused Apple of favouring OpenAI’s ChatGPT over rival AI chatbots.