Meta, Microsoft announce workforce cuts amid rising AI investments