Halliburton, one of the world’s largest providers of products and services to the energy industry, reported better-than-expected earnings in the second quarter, sending its shares up over 3% on Tuesday.