Asylum win caps immigrant’s 2-year detention as courts weigh 3rd-country deportations