The Alabama Supreme Court on Thursday threw out nearly all of a record $3.6 billion verdict that the state government won against Exxon Mobil Corp. in a dispute over natural gas royalties.

In an 8-1 decision, the state’s highest court awarded Alabama $51.9 million in compensatory damages. The court threw out all punitive damages, which made up most of the $3.6 billion verdict, the largest ever in Alabama.