Plans for a barn at a Middleton-in-Teesdale farm have been approved by Durham County Council.