OpenAI has filed a countersuit against Apple, escalating a high-stakes legal battle over alleged trade secrets and consumer hardware development.