SPRINGFIELD, Ill.—This is what happens when a major American state lets its bills stack up for two years.

Hospitals, doctors and dentists don’t get paid for hundreds of millions of dollars of patient care. Social-service agencies help fewer people. Public universities and the towns that surround them suffer. The state’s bond rating falls to near junk status. People move out.

A...