UPS’s stock rallies after reporting an earnings beat and raised outlook.