Spain’s Prime Minister Pedro Sanchez visits Morocco on Thursday, after Madrid reversed decades of policy on the Western Sahara to end a year-long diplomatic crisis, a U-turn that has angered Algeria.