An endogenous policy model of hierarchical government