Volkswagen has scored a critical court victory in its battle against several state attorneys general who are still pursuing billions of dollars over its emissions scandal.

So far, Volkswagen has agreed to pay more than $20 billion to settle civil and criminal actions related to the automaker’s 2015 admission that it installed defeat devices in nearly 600,000 “clean diesel” vehicles in the United States that were designed to cheat emissions tests. On Wednesday, Volkswagen paid another $1.2 billion in regulatory fines to German prosecutors.