What roles do the courts play in the criminal justice system?