Both Medicaid and SNAP would suffer hundreds of billions in cuts, according to the analysis