The deal addresses many of the issues that leaders wanted to settle, but leaves the implementation of its provisions uncertain.