The US credit rating downgrade by S&P brought condemnation from government officials, and fears of market turmoil.