The company’s debt repurchase will allow the group of seven banks, led by Morgan Stanley, to shed the riskiest portion of loans that has sat on their balance sheets since they backed the buyout of the platform, formerly known as Twitter Inc., for $44 billion in 2022, a transaction that included debt.