A council worker who stole nearly £900,000 from extremely vulnerable people, both living and dead, has been jailed.