The recent UN resolution, affirming Morocco’s plan for the Western Sahara, was a masterstroke of enlightened diplomacy.