A combination of declining revenues and increased spending led to significant budget deficits.