UnitedHealthcare has agreed to a $2.5 million settlement in a class action lawsuit affecting just over 12,000 individuals.