A 62-year-old man on ICU has a tracheostomy and is on a weaning programme. He is currently tolerating 12 hours off the ventilator on a T-piece during the day but requires ventilatory support overnight. He has been in ICU for 35 days. What classification of weaning describes this patient, and what is the next step?