Plans to turn a Newton Aycliffe office into a flat have been approved by Durham County Council.