UPS announced the company will lay off 20,000 workers and close some facilities as it reduces Amazon package shipments.