Pentagon wrestles with false climate predictions as military funds shifted to green agenda