Energy company BP has agreed to pay $81 million to settle a lawsuit over emissions violations at a refinery in the Los Angeles area, marking one of the largest such settlements in U.S. history, air quality officials said Thursday.

As part of the agreement between BP West Coast Productions and Southern California air quality officials, BP will pay $30 million over the next three decades toward public health programs in low-income neighborhoods affected by the emissions. But the London-based company admitted no wrongdoing.