NBC: N.Y. judge ends Trump contempt order after lengthy legal fight