Sam Bankman-Fried, the founder of the FTX cryptocurrency exchange who was convicted of stealing billions of dollars from customers, was sentenced to 25 years in prison on Thursday, capping an extraordinary saga that upended the crypto industry and became a cautionary tale of greed and hubris.