The move comes after several months of negotiations.