Trump's attorney has tense exchange with judge