The layoffs do not affect Meta’s newest A.I. hires, who are in some cases being paid up to hundreds of millions of dollars.