In a footnote to
Letter 246 concerning
Frodo’s sojourn in Tol Eressëa,
Tolkien describes that
[Gandalf] was an emissary of the
Valar, and virtually their plenipotentiary in accomplishing the plan against
Sauron. He was also in special accord with
Círdan the Ship-master, who had surrendered to him his ring and so placed himself under
Gandalf's command. Since Gandalf himself went on the Ship there would be so to speak no trouble either at embarking or at the landing.
And in a footnote to
Letter 297, he wrote,
At the time of [Galadriel’s] lament in
Lórien she believed [her exile from Aman] to be perennial, as long as Earth endured. Hence she concludes her lament with a wish or prayer that Frodo may as a special grace be granted a purgatorial (but not penal) sojourn in Eressëa, the Solitary Isle in sight of
Aman, though for her the way is closed. … Her prayer was granted – but also her personal ban was lifted, in reward for her services against Sauron, and above all for her rejection of the temptation to take
the Ring when offered to her. So at the end we see her taking ship.
Google defines
plenipotentiary as
a person … invested with the full power of independent action on behalf of their government, typically in a foreign country.
Moreover, Tolkien indicates (especially in
Letter 156) that Gandalf died on
Zirakzigil and left Eä, but was sent back into
Arda by
Eru. He was granted greater authority and the use of more extensive powers than he had received from the Valar. It was Gandalf who accepted
Galadriel’s repentance and lifted her Exile. It was Gandalf who accepted
Arwen’s suggestion that Frodo take her place in the voyage to Tol Eressëa, though it took longer for Frodo to accept the invitation, and then only after several bouts of illness.
When Sauron was defeated, Gandalf’s mission came to an end. He remained to crown
Aragorn as High King of the
Númenóreans, restoring the unity of the
Númenórean state, and he saw the marriage of Aragorn and Arwen. These, if you will, were bonuses to his success. Thus his words to Aragorn,
I was the Enemy of Sauron; and my work is finished.