Legal Institutions and Social Values: Theory and Evidence from Plea Bargaining Regimes