Variational control problems with constraints via exact penalization