The shuttering of the C.I.A. program, one of the most expensive efforts to arm and train rebels since the 1980s, has forced a reckoning over its successes and failures.