A Canadian court approved the company’s plan to settle outstanding litigation in the country.