Improving Graph Neural Networks on Multi-node Tasks with the Labeling Trick (Journal of Machine Learning Research, 2026)