Federal funding cuts shift state budgets