Posterior Sampling for Competitive RL: Function Approximation and Partial Observation