Iraqi PM agrees to step down