The deal comes more than 20 months into the conflict — and more than three months after a previous deal ended.