Federal and state justice systems carry out the same functions (enforcing laws, trying cases, and punishing offenders), but the laws and agencies of the two systems differ. State legislatures make most criminal laws, which are enforced by state and local police.