OpenAI CEO Sam Altman loves Apple, but a legal battle is testing the relationship between the two companies.