Protests dash Iraqi PM’s chances of new term, hit US hopes of shaping government