Layoffs have hit companies from American Airlines to Meta to Intel this year amid a backdrop of cost-cutting and technological change.