Closed-Loop Stochastic Dynamic Potential Games with Parametric Policies and Constraints