Invariant Node Representation Learning under Distribution Shifts with Multiple Latent Environments