Clif Bar & Co. has agreed to a $12 million settlement in a class-action lawsuit alleging that its protein bar…