A ferocious lobbying battle over the legislation pitted public health and education groups against chemical , pharmaceutical and packaging giants , and was closely watched around the nation amid similar movements to ban the chemical .