Lottery contractor gave millions towards ex-board chair's mansion