Complex sentence: The Al Rashid amirs of Ha'il were able to secure Abdallah's release in exchange for Abd al-Rahman and Abdallah being taken to Ha'il and a Rashidi governor appointed to govern Riyadh.
Split into simpler sentences: The Al Rashid amirs of Ha'il were able to secure Abdullah's release in exchange for Abdul-Rahman. Abdullah was taken to Ha'il and a Rashidi emir appointed to him to govern Riyadh.