A wife who said she was belittled and controlled by an abusive husband for 22 years took devastating revenge in court.