The conversion of a luxury holiday cottage and barn near Whitby into a residential dwelling has been approved by planners despite objections from the town council.