President Trump took credit for the agreement, which many hope will put a clear end to decades of conflict.