The British-Pakistani historian and writer has influenced the international left and public policy for decades.