The ruling comes as Morocco emerges as a political force in African soccer, preparing to host this year’s Africa Cup of Nations and the 2030 World Cup, along with Spain and Portugal.