Critical behavior of the three-dimensional XY universality class