The original is fine, it's not ambiguous. Logically, the it can refer only to Morocco. Granted, the French still have to hold Algeria too but that fact goes without saying and doesn't need to be explicitly stated.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.