Grab Holdings said it has reached a deal to go public in the U.S. by merging with a special-purpose acquisition company (SPAC) that will value the nine-year-old company at about $39.6 billion.