How major US stock indexes fared Thursday