When you get to the end of the mission to battle Ultimo, go back to the door you came in. Ultimo to big to pass the edge of the room he is in. You can just sit back and hit him with your ranged attacks. Then, fly in and collect the health and energy vials he drops.