Exchange-Rate-Based Stabilization with Endogenous Fiscal Response