The former New York City mayor was rebuked in the Manhattan courtroom after a bizarre outburst about his finances.