The ruling could set a precedent that forces any new offshore drilling activity to take protections for the rare whale into account.