Complex sentence: Hellboy eventually manages to trap both spirits in the sword again, and as a result, the dragons are sealed back into the underworld.
Split into simpler sentences: Hellboy eventually manages to trap both spirits in the sword again. As a result, the dragons are sealed back into the underworld.