A team of attorneys working alongside Texas RioGrande Legal Aid has scored a $50 million settlement and $3 million in attorney fees from a plastics company that’s polluted coastal bays off the Gulf of Mexico for years.

The plaintiffs, San Antonio Bay Estuarine Waterkeeper, a community group that protects the bays, and one of its leaders, Diane Wilson, and defendant Formosa Plastics Corp. entered the settlement Tuesday and submitted their consent decree to the federal government for review. Formosa has also promised to pay future attorney fees for the life of the consent decree.