CONCORD, N.H. (AP) — New Hampshire's hospitals have agreed to spend $50 million over the next five years to fund the state's substance abuse programs.

The announcement Friday by Republican Gov. Chris Sununu helps address a long-running debate over how the state would fund the state's ongoing opioid crisis. Until now, funding for the state drug abuse and prevention programs came from 5 percent of the profits from liquor sales. But the state wants to use that money to help fund Medicaid costs as federal funding decreases.

The announcement should also bolster efforts to expand New Hampshire's Medicaid program, which won initial approval Thursday in the House. It voted to send a reauthorization bill to its finance committee. The Senate passed the Medicaid expansion bill last month.