Gibraltar’s supreme court has granted a 30-day extension to allow authorities there to continue to detain the Iranian oil tanker Grace 1 until Aug. 15.