The gap between revenues and spending was the widest in seven years. Defense, Medicare and interest payments ballooned the shortfall.