How are legal precedents used in the judicial system?