Microsoft and Amazon announced plans to lay off thousands in the latest round of large-scale tech layoffs.