A ban in two North Yorkshire coastal spots is set to be made permanent after an 18-month trial.