A negotiation process that barely avoided a default also threatens to undermine the U.S. standing with credit ratings agencies.