The president traveled to North Dakota for the opening of Theodore Roosevelt’s presidential library.