The weakening of Hezbollah in last year's war with Israel allowed Lebanon's long deadlocked parliament to reach consensus around a president who has the confidence of the international community.