Scattering and lens rigidity on some Riemannian manifolds with trapped geodesics