US president reaffirms support for Afghan security forces