The legal and historical bases for a justice system

What are the legal and historical bases for a justice system and its administration in the United States? Why is the conflict-versus-consensus debate important?