Theory and Practice of Delegation to Non-Majoritarian Institutions