Iraq's parliament was unable to elect a speaker because neither of the two primary candidates obtained a majority in a contentious session.