The president said fighting inflation is his "top domestic priority" during remarks about the U.S. economy on Tuesday.