NBC: Trump ordered to pay nearly $400k in legal fees over failed lawsuit against The New York Times