A man has lit himself on fire outside the Manhattan courthouse where former President Donald Trump's hush money trial is taking place.