A year-long planning dispute that has stalled new homes is nearing an end on the site of the demolished Kraus carpet factory.