Giuliani has repeatedly argued on President Donald Trump’s behalf in the media, but never in a federal court.