Congressional leaders have reached a spending deal to keep the government running through the fall, a senior aide told NBC News on Sunday.

According to the source, the text of the agreement could come out as early as Sunday evening, NBC reported.

There had been a series of minor issues, but those have all been resolved, and a shutdown scenario has been averted, according to NBC.

This is a breaking news story. Please check back for updates.

—NBC News contributed to this report.