New president pledges 'Iraq First' after securing 227 votes, ending five months of political deadlock.