NATO allies to leave Afghanistan with US