They fought the rebels and the Mexican federal troops until 1918