Business is booming at Google’s parent company, even as it loses billions of dollars on kooky-sounding projects that may never produce any revenue. Most of the losses are concentrated in Alphabet Inc.’s X lab, a wellspring of far-out ideas that has become known as a “moonshot factory” since Google co-founder Sergey Brin created it about six years ago....