XPO Logistics Loss Narrows as Revenue, Margins Climb