Rudy Giuliani, the former mayor of New York City who represented former president Donald Trump in cases related to the 2020 election, has been formally disbarred in New York.