Former Pakistan PM to regain office