Plans to turn a Shildon shop into a flat have been approved by the council.