A Game-Theoretic Framework for Joint Forecasting and Planning