The Mark Zuckerberg-led tech giant unveiled plans for a new class of stock designed to bankroll its massive artificial intelligence spending.