The president’s rosy description of his relationship with Kim Jong-un, the North Korean leader, was a jarring reversal in tone after months of the two leaders trading taunts.