You are well on your way to success. You know you have a problem and you have found that you can control it, for at least some of the time.
A lot of people find when they try and lose a habit, whether weight, cigarettes, sweets or drink that they have relapses, which is what has happened to you, and like you they regret it later and cannot understand why they did it.
Looking at your story. One question that arises is how did you come to have the two bottles of wine you drank in the house? If it is because you always have wine or other alcohol in the house, then the first thing to do is get it out of the house, so that any decision to drink needs to be planned before hand.
If you plan to drink beforehand and then need to go out and buy it/call into the supermarket on the way home, you have time to plan just how much you are going to buy, or even fight the temptation all together. If you decide to buy wine, buy no more than one bottle at a time and make that bottle a half bottle size. This too will take resolution, but you are clearly capable of it.
I suggest that you buy yourself some old fashioned small wine glasses, nice cut glass ones or coloured ones. This way every glass of wine wil be smaller and even a half bottle of wine will provide you with three or four glasses so you still go through the rituaal of pouring another glass.
Do not be afraid to come back here for support and encouragement. We have our moments, but we do want to help and, I think are kind and supportive.
You have made a very good start on several fronts, weight and wine, and you will succeed, for your grandchildren's sake if nothing more, but as all of us know, every path to success has potholes of failure all along it.