RALEIGH, N.C. (AP) — A Republican bill requiring crosschecks of food stamp recipients against North Carolina lottery winners as a fraud-prevention tool has cleared the state House after three days of debate.

Final House approval came Thursday largely along party lines, just like the initial approval it received Wednesday. The bill got pulled Tuesday from the floor after several Democrats complained the proposal was too punitive.

The measure directs the lottery to give social services officials list of people who win at least $2,250 and the amount of their prizes. The officials would scrutinize winners who receive food stamps and failed to report those jackpots.

The bill heading to the Senate also details how long people are disqualified from receiving food stamps when they don’t meet work or training requirements.