Guzman, who for years led the powerful Sinaloa cartel that is blamed for thousands of deaths in Mexico, had filed habeas corpus petitions - civil suits used to assess whether an imprisonment is lawful - and asked for legal representation in this appeal.