Plans to turn a County Durham village flat into an office have been approved by the council.