Invariant Graph Transformer for Out-of-Distribution Generalization