A court has ordered Donald Trump to pay the New York Times at least $400,000 in legal fees over a failed lawsuit on his family’s wealth and tax practices.