Former US President Trump spent $40 million on legal expenses.