Meta is spending aggressively to compete in the AI race against rivals like OpenAI, Alphabet Inc.'s Google and Microsoft Corp