Able Labour politician, often at odds with his party, who became a successful author and columnist.