The deal that extends the company’s relationship with the country while loosening its hold on its output there.