Federal prosecutors say a former Indiana lawmaker has agreed to plead guilty to a federal charge alleging that he accepted promises of compensation from a casino company during his time in public office.