A husband who killed his wife after suffering years of abuse at her hands has been jailed for three years.