The eventual victor was the country’s military chief, Joseph Aoun, whose win on Thursday ended two years of political crisis in which 12 successive votes failed to reach the requisite majority.