Original: He entered the École Polytechnique in 1887 but the following year was diagnosed with tuberculosis and had to spent six months recuperating in Algeria.
Simplified: However, he had tuberculosis and had to spent six months getting better in Algeria.