Under current law, school districts can each set their own rules and procedures for corporal punishment. Allen said her bill would set statewide standards.
Republicans defeated the bill on a 69-73 vote Wednesday, arguing it infringed on the autonomy of school districts.
But it passed 87-56 on Thursday, after lengthy debate.
Some representatives who opposed the measure sung the praises of school spankings to straighten out problem students. Those supporting it said parents should be the ones to decide how their kids are punished.