It's not like him halving his compensation makes any material difference in the ability of the company to avoid layoffs.
If cutting the CEO's compensation lets them keep even one regular employee who would otherwise have been laid off, then that's made the world a materially better place, if only for that employee and their family.
Also, as an Apple shareholder, that’s definitely not my reaction to the pay cut.