Regional lawmakers have elected Nechirvan Barzani as president of the semi-autonomous Kurdistan Region of Iraq.