Short answer: you can't. Halo 2 doesn't allow it.
The Flood-buddy trick that works in other Halo entries depends on the AI behaving in a particular way, and Halo 2's version simply doesn't cooperate. If keeping an infected companion alive is the goal, you're better off heading back to an earlier game in the series.