WASHINGTON — Congressional leaders reached a bipartisan agreement on Sunday to fund the government through September, according to congressional aides from both parties, effectively ending suspense about the possibility of a government shutdown next weekend.

The agreement, which still must be voted on by lawmakers, includes increased funding for the military and for border security, according to two of the aides. It does not include funding for the wall that President Trump wants to build along the border with Mexico, the aides said.

Details of the agreement were not yet public on Sunday night.

The Run-Up

The podcast that makes sense of the most delirious stretch of the 2016 campaign.

Lawmakers had already taken action to keep the government open while they finalized the spending agreement. On Friday, Congress approved a one-week spending measure that averted a shutdown on Saturday, Mr. Trump’s 100th day in office.

That action prevented what would have been a major political embarrassment for Mr. Trump and his fellow Republicans, who, despite having control of both houses of Congress and the White House, were unable to pass any marquee legislation in the president’s first 100 days.