Original: However, he subsequently hears from Max that she is alive, and, encouraged both by a vision of Max singing "Hey Jude" to him and by his understanding mother, he arranges to legally return to the United States.
Simplified: He then hears from Max that she is alive, and he arranges to return to the United States properly and without breaking the law.