NATO grapples with billions of dollars it will leave behind in Afghanistan