A federal judge tentatively approved a $1.075 billion agreement between ExxonMobil Corp. and thousands of service station dealers who claim they were overcharged by the company, settling a 14-year fight that also went to the Supreme Court.

U.S. District Court Judge Alan Gold in Miami on Wednesday gave preliminary approval of the settlement, in which Exxon also agreed to end opposition to the dealers’ claims.