US soldier held by Afghan militants to face court-martial