Stocks inch lower on US credit rating downgrade