FTX, the bankrupt cryptocurrency exchange, has reached an agreement with the United States Internal Revenue Service (IRS), its main creditor.