Mr Trump was ordered to pay the legal costs of a company he unsuccessfully sued after his case was thrown out last year.