A developer’s bid to build new homes in a County Durham village has been refused for the second time after residents warned it would cause “major harm” to the local landscape.