US no longer had 'clear purpose' in Afghanistan, Biden says