Stocks close higher despite weak Caterpillar, Boeing earnings