An unmistakable sense of unease has been growing in capitals around the world as the U.S. government from afar looks increasingly befuddled — shirking from a military confrontation in Syria, stymied at home by a gridlocked Congress and in danger of defaulting on sovereign debt, which could plunge the world’s financial system into chaos.