The resignation comes just ahead of a key hearing in the Texas Senate on legislation that could impact the future of online lottery sales.