Generalized and Personalized Federated Learning with Foundation Models via Orthogonal Transformations