A Manhattan federal judge on Thursday threatened Rudy Giuliani with civil contempt as the former New York City Mayor appeared in court after failing to turn over assets—in violation of a court order—to satisfy a $148 million defamation judgment.