Drama in the dock

As Simon Stephens’ inventive new play puts fictional despot King Ubu on trial Sarah Hemming explores the courtroom drama genre