COLUMBIA — South Carolina senators approved a bill Thursday designating $113 million from this year’s rainy day fund.

The 33-10 vote on the capital reserve bill nearly brought to a close three weeks of budget debate in the chamber. The separate bill requires another vote to return to the House.

The largest chunk designated pays off a $20 million loan to the Department of Revenue to cover contracts negotiated by Gov. Nikki Haley following last fall’s cyber-theft of millions of taxpayers’ personal data. The bill also includes $10 million to extend credit monitoring services to taxpayers affected by the hacking.

Some senators argued that money that is meant for capital projects should not cover such expenses.

Sen. Lee Bright proposed an amendment — defeated 32-11 — transferring all $113 million to the Department of Transportation for road and bridge construction.

That would include the $2 million set aside for victims of the 2011 children’s train-ride crash in Spartanburg that killed a 6-year-old boy and injured 27. The Spartanburg County Republican said victims’ compensation should come from the state’s insurance reserve fund instead.

The bill’s approval comes a week after the Senate passed its $6.3 billion spending proposal for state taxes in 2013-14.