A Senegalese judge on Thursday ordered that jailed opposition leader Ousmane Sonko be reinstated on the electoral roll, clearing the way for him to stand in next year’s presidential election.