The releases marked a successful conclusion of an effort by the Biden administration to secure their freedom.