The Justice Department and 17 states have reached settlements with three major egg producers accused of fixing the price of the breakfast staple.