An overgrown plot of land could be used for housing after a landlord agreed to buy it from the council.