Apple filed a federal lawsuit on Friday accusing OpenAI and two former employees of systematically stealing trade secrets to build its consumer hardware division, a sharp break in a partnership that began in 2024.