Oil prices climbed after President Donald Trump shared a warning to Iran in a social media post, saying "the clock is ticking and they better get moving, fast."