Apex ruling overturns order that gave companies another chance to preserve an “unlawfully” granted offshore exploration right.