The president’s comments come as the latest federal statistics show inflation rose to its highest point in three years.