Plans to convert the first floor of a Victorian warehouse in Barnard Castle into a residential space have been approved.