A man who poured petrol on a woman and set her on fire has pleaded guilty to murder after she died nearly two years on from the attack.