Cooperative Classification and Rationalization for Graph Generalization