Miami law firm Stearns Weaver Miller Weissler Alhadeff & Sitterson scored a dream payday Thursday when a Miami federal judge awarded the law firm $249 million in fees for its successful representation of gas station owners in a $1.1 billion class action case against ExxonMobil.

The ruling by U.S. District Judge Alan S. Gold ends a ferocious fee battle between various attorneys who represented the plaintiffs, including Pertnoy Solowsky & Allen in Miami.