Dollar General is facing a federal lawsuit over claims that it charged customers higher prices than advertised.