"Odor in court" sounds a lot like "order in court". "Odor" is used to replace "order" because the skunk that walked into court is the subject in the conversation. A skunk is an animal that produces odor when defending itself. This joke is a play on the word "odor". 
When a skunk walked in , the judge said , ' odor in the court ' .