President Biden praised international allies for helping secure the release of four Americans in a prisoner swap shortly after his election.