The agreement, which is subject to court approval, resolves a major hurdle for the FTX bankruptcy process.