How major US stock indexes fared Thursday, 8/31/2023