The stimulus package the Democrats are now working on would work differently: It could provide states with funds to cover mandatory Medicaid spending, which would help state governments avoid cuts to education and other programs, Democratic leadership aides said.