UPS said it expects to close at least 24 buildings and eliminate up to 30,000 operational positions from its U.S. workforce.