The United States has made a last-ditch attempt to stop an Iranian oil tanker from leaving Gibraltar.