A dangerous tree near Croft Village Hall is set to be removed after plans were approved by North Yorkshire Council.