Translation:She has just learned that she needs her passport.
No. The first "heeft" is part of the present perfect construct with "geleren", while the second "heeft" is part of the verb "hebben ... nodig". The reason the sentence ends with "nodig heeft" is because the latter half of the sentence is a subordinate clause. That clause also begins with "dat", which causes the the conjugated verb to jump to the end of the sentence. Don't worry, I also was confused when I first saw this sentence. Hope this helped. :)