Realization of a long-range antiferromagnet in the Hubbard model with ultracold atoms