US stocks close at record highs for 2nd day in a row amid big corporate deals