Measurement of the J/ψ meson and b-hadron production cross sections in pp̄ collisions at √s = 1960 GeV