A barn in Rainton Gate is set to be converted into a home after plans were given the go-ahead by Durham County Council.