Global Solutions to Non-Convex Functional Constrained Problems with Hidden Convexity