US stocks trade mixed ahead of Independence Day as investors hope to extend gains into 2nd half of 2023