Uber has ended ride-hailing operations in Nigeria after 12 years, leaving drivers and riders to adjust as the company redirects investment and restructures its global business.