Stochastic approximation of constrained systems with system and constraint noise