What you propose is the duty of each state/territory to provide for themselves.  This requires budgeting and judicious use of federal dollars - things the government of Puerto Rico did not do for many years.