To my understanding, here they use lasers to create fusion and the 2 megajoules are emitted by the lasers.
Hence they need waaay more power than is generated to drive their lasers.
That is also why this research is not actually aiming at power geration, but at fusion weapons. However, the power framing creates much better press and thus better chances for future funding.