Taliban's actions won't help them gain 'legitimacy’: WH