A man who went on a spending spree after beating a mother-of-two to death in Moray has been jailed for at least 24 years.