Municipal-bond market falters as states run out of money