A British-flagged tanker that was detained by Iran for 10 weeks, docked in Dubai on Saturday, after a standoff that has stoked tensions along a vital global shipping route for oil.