Solving Constrained Optimal Control Problems Using State-Dependent Factorization and Chebyshev Polynomials