Meta Platforms Inc. has joined Elon Musk in his efforts to derail OpenAI’s plans to convert itself into a for-profit company.