"When we distract our military with a radical climate change agenda, we detract from their main purpose of defending America from enemies" like the Islamic State, said Mr. Buck of Colorado, the Republican congressman who sponsored the measure.