Two American solar heavyweights built on overseas manufacturing are scaling back operations in an effort to keep up with a shifting landscape.