 Dollar General has agreed to pay $12 million in penalties and improve safety at nearly 20,000 stores across the U.S. after claims that the discount retailer put its employees in danger with its practices.