Pakistan 's chief justice has formally resumed his post , two years after his controversial dismissal threw the country into political turmoil .