Balancing Control and Flexibility in Public Budgeting