A Moroccan court has sentenced a rapper known for his criticism of the country’s ties with Israel and government corruption to eight months in prison