USA vann junior-VM efter avgörande ryck i tredje perioden.