The Fianna Fail leader was elected for a second time after chaos in Ireland's parliament subsided.