US stock market opens higher, indexes near record