The Cook Islands-registered tanker Eagle S, which was involved in a suspected breach of a Baltic Sea power cable, will be released by Finnish authorities.