Bitcoin outpaced major U.S. stock indexes on Tuesday, rising as investors weighed the prospect of broader military conflict in Iran.