When Massacre Wurm enters the battlefield, its first ability triggers, causing each opposing creature to get -2/-2 until end of turn.
Each Spirit token your opponents control dies as a state-based action due to having less than zero toughness.
Massacre Wurm's second ability triggers for each Spirit that dies this way, causing each opponent to lose an arbitrarily large amount of life and lose the game.