US legal agency in 'sweetheart' deal with chemical giant