An Invariance Principle for Conditioned Sums of Independent Random Variables