Iraq and Afghanistan have exacted a toll on America – in lives, treasure and standing – that it will take a generation to work through.