The US president’s comments lead to a drop in crude costs and a rebound in shares.