The president spoke out against Energy Secretary Chris Wright's assertion that the average gas price could stay above $3 a gallon through 2027.