The synagogue and the adjacent El Mellah Museum, which retraces Jewish history in Morocco, were restored as part of the second phase of a government program aimed at rehabilitating Casablanca’s old city.