Galaxy orbits and the intracluster gas temperature in clusters