Take this example, the people voted that DC tipped workers should get a higher minimum wage, but now it's being repealed by the DC city council:
https://www.washingtonpost.com/local/dc-politics/dc-council-...
Of course how much so spend on those "good things" is an optimization problem.
You're making the argument that companies should be nicer to their employees, because that is in the best interests of their shareholders. The linked article is implying that companies should be nicer to their employees, despite the best interests of their shareholders. These are 2 completely orthogonal arguments. The first is a moral argument, whereas the second is a business-tactics argument.
Since you brought it up, I certainly agree with the business-tactics argument to some extent. Companies like Google have certainly done well for their shareholders, by keeping their employees happy. But then again, companies like Walmart have shown that in some markets, employee happiness is barely correlated with shareholder returns.
WalMart is concerned about employee happiness and satisfaction. The actions they take are not the actions that other companies take. Their employees are happy enough with the results for WalMart to be satisfied with them. That others do different things (which may or may not achieve different results) is not important to WalMart. What is important is their return on investment, they have determined that more investment wouldn't be worth it.
Of course as outsiders we can look on WalMart and make value judgements. I wouldn't want to work there. I wouldn't want to work for Costcot either. YMMV.
Hence why CEOs and Board of Directors will optimize for shareholders interests above customers/employees/society. Because if they don't, they will get fired and get replaced with someone else who does. This is textbook Evolution and Natural Selection.
If we aren't happy with the way corporations are paying their employees, the solution has to come from outside the corporations. Demand that your government increase the minimum wage, increase the capital gains tax rates, raise tax rates for the 0.1%, and use the proceeds to fund basic income or a better social safety net. he private sector does a great job of generating wealth, but don't ever expect it to distribute it fairly.