The job losses reflect how changing trade and environmental policies can alter the trajectory of an industry that was among the fastest-growing segments of the US energy industry