Ramgopal Yadav reinstated in SP