The United States and the Taliban cleared the decks for peace talks Tuesday even as a deadly attack on US troops underlined the still furious nature of their decade-long war.