The role marks a change in fortunes for the economist, who faced legal proceedings under the government of Sheikh Hasina.