The states have been warned their credit ratings could be sliced due to their inability to control spending.