The Exorcism of Emily Rose (2005)
The Exorcism of Emily Rose is a 2005 American courtroom drama horror film directed by Scott Derrickson and starring Laura Linney and Tom Wilkinson. The film is loosely based on the story of Anneliese Michel and follows a self-proclaimed Agnostic who acts as defense counsel (Linney) representing a parish priest (Wilkinson), accused by the state of negligent homicide after he performed an exorcism. The film, which largely takes place in a courtroom, depicts the events leading up to and including the exorcism through flashbacks.
More at Wikipedia.