Rivian Automotive Inc. priced its highly anticipated initial public offering at $78 a share, well above its raised expectations, valuing the electric-vehicle maker at more than $77 billion on a fully diluted basis, according to a person familiar with the matter.