Plans to convert a barn in Mickleton into a residential building have been approved by Durham County Council.