Oil prices climbed after Iran warned it could strike infrastructure across the Gulf if the U.S. targets key Iranian facilities.