Dimensionality-driven in-plane antiferromagnetism in two-dimensional SrRuO3