Meta told laid-off workers that the cuts would help fund other priorities. It's a blunt sign of how spending in the AI era is reshaping layoffs.