McCarthy's departure also further narrows the razor-thin GOP majority in the House.