Groups, Jacobi functions, and rigged Hilbert spaces