Top US companies lay off thousands of workers while rewarding shareholders