IHTM28094 | Liabilities: investigating liabilities: interim maintenance orders ceasing on the deceased's death
From HM Revenue & Customs · Inheritance Tax Manual
You should allow any deduction for any sums which were owed to the former spouse or civil partner (IHTM11032) before the death, under the order, but which remained unpaid at the deceased’s death.