Political parties in Congo have reached a deal that calls for President Joseph Kabila to leave power after the next election. The president’s party had wanted the vote to be held in mid-2018, and the dispute had provoked violent street demonstrations.