Caterpillar beats earnings estimate this quarter, but the effects of high tariffs are making its presence felt in pushing materials price up.