After betting heavily on the metaverse—and spending many billions building it—Meta recently pivoted hard.