The biographer of Keynes straddled disciplines and political parties in a lengthy and often controversial career