Ex-Iran president’s funeral turns into political rally