Ratings agency Moody's has warned the budget's gap between spending and revenue could pose "challenging".