The agreement comes after years of litigation over how much Marathon should pay Carson in local taxes.