Companies cut thousands of jobs while rewarding shareholders