Complex sentence: The bulk of the official ransom had been paid using royal funds and it would take years for the city to repay the treasury, and to recover from the raid.
Split into simpler sentences: The bulk of the official ransom had been paid using royal funds. It would take years for the city to repay the treasury, and to recover from the raid.