The deals included a controversial agreement on economic activities in areas around the Natuna Islands in the South China Sea.