In the U.S. a brief is a written legal argument that is presented to a court to aid it in reaching a conclusion in a case. Briefly means fleetingly, or for a short time. The joke is playing on the word "briefly" since we can see "brief" in that word which references a legal argument presented before a judge.
' ' I presented my case to the judge , ' ' Tom said briefly .