A 60-year-old man is admitted to the ICU for respiratory failure due to community-acquired pneumonia. He is intubated, started on mechanical ventilation, and receives appropriate antibiotic therapy. Over the next 4 days, he has improved significantly. Medical history is otherwise unremarkable and he was on no medications prior to admission.

Current physical examination findings include temperature of 37.0 °C (98.6 °F), blood pressure of 120/80 mm Hg, pulse rate of 85/min, and respiration rate of 12/min. Scattered coarse breath sounds are noted throughout both lung fields. The remainder of the examination is normal.

After 30 minutes of a spontaneous breathing trial (SBT), blood pressure is 135/90 mm Hg, pulse rate is 100/min, respiration rate is 28/min, and oxygen saturation is 92% on an FIO2 of 0.35. He tolerated the SBT without evident onset of arrhythmia, respiratory distress, diaphoresis, or anxiety.

Chest radiograph shows clearing of diffuse infiltrates.

Which of the following is the most appropriate management?