So he achieved his original goal but instead of getting it through the underhanded tactics he originally set out to use, his commitment to his friends and growth as a person is what got him the harem he wanted.
I gotta say, despite a few missteps here and there I do like the overall arc of this series.