The State Department and National Institutes of Health reap diplomatic, scientific benefits from leaning into artificial intelligence.