<p>The company’s agreement with state officials removes a cloud that was hanging over the stock, an analyst said.</p>