A canonical connection for Lie group actions