Toast raised close to $870 million in its IPO Tuesday night, selling shares at $40 each, well above the expected range.