Malaysia has appointed the leader of the Pakatan Harapan coalition, Anwar Ibrahim, as Malaysia's 10th Prime Minister.