Twitter said it received Elon Musk’s letter and intends to close the deal at the agreed-upon price.