US national debt has exceeded $40 trillion for the first time.