Call to halt North Yorkshire primary school closure rejected