Energy don’t have weight but, it does have an effect on the curvature of space the same way matter does. In fact one of the proposed methods to create artificial blackholes is to put enough photons into the same place. It’s easier than getting matter together as photons don’t interact with eachother.
However the point is correct that light energy will only impart an insignificant amount to the earth’s pull.