Facebook parent Meta Platforms Inc. debuted a new artificial intelligence tool that can generate or edit videos based on a simple text prompt, elevating competition with rivals like OpenAI and Google in the race to develop the world’s most advanced AI technology.