Doctors had put Pope Francis on non-invasive mechanical ventilation after he had a coughing fit in which he inhaled vomit that needed to be extracted.