Allergan settles gender discrimination case for $4m