The broad index and the Nasdaq Composite each added 0.1%, with Microsoft, Meta, Amazon and Apple set to report results in coming days. McDonald’s stock was a standout, rising 3.7%.