Congressional negotiators reached an agreement late Sunday on a broad spending package to fund the government through the end of September, alleviating fears of a government shutdown later this week, several congressional aides said.

Congress is expected to vote on the roughly $1 trillion package early this week. The bipartisan agreement includes policy victories for Democrats, whose votes will be necessary to pass the measure in the Senate, as well as $12.5 billion in new military spending and $1.5 billion more for border security requested by Republican leaders in Congress.

The agreement follows weeks of tense negotiations between Democrats and GOP leaders after President Trump insisted that the deal include funding to begin building a wall along the U.S.-Mexico border. Trump eventually dropped that demand, leaving Congress to resolve lingering issues over several unrelated policy measures.

The new border-security money comes with strict limitations that the Trump administration use it only for technology investments and repairs to existing fencing and infrastructure, the aides said.

"This agreement is a good agreement for the American people and takes the threat of a government shutdown off the table," said Senate Minority Leader Charles Schumer, D-N.Y. "The bill ensures taxpayer dollars aren't used to fund an ineffective border wall, excludes poison pill riders and increases investments in programs that the middle class relies on, like medical research, education and infrastructure."

Schumer and House Minority Leader Nancy Pelosi, D-Calif., boasted that they were able to force Republicans to withdraw more than 160 unrelated policy measures, known as riders, including those that would have cut environmental funding and scaled back financial regulations for Wall Street.

Democrats fought to include $295 million to help Puerto Rico continue making payments to Medicaid, $100 million to combat opioid addiction, and increases in energy and science funding that Trump had proposed cutting. If passed, the legislation will ensure that Planned Parenthood continues to receive federal funding through September.

Donald Trump's first 100 days: in cartoons Show all 33 1 /33 Donald Trump's first 100 days: in cartoons Donald Trump's first 100 days: in cartoons Donald Trump's first 100 days in office were marred by a string of scandals, many of which caught the eye of the Independent's cartoonists Donald Trump's first 100 days: in cartoons Trump's first 100 days have seen him aggressively ramp up tensions with his nuclear rivals in North Korea Donald Trump's first 100 days: in cartoons Mr Trump has warned of a "major, major conflict" with the pariah nation lead by Kim Jong Un Donald Trump's first 100 days: in cartoons Mr Trump dropped the "mother of all bombs" on alleged ISIS-linked militants in Afghanistan, amid an escalation of US military intervention around the globe Donald Trump's first 100 days: in cartoons Mr Trump has been accused of falling short of the standards set by his predecessors in the Oval Office, including Franklin D Roosevelt Donald Trump's first 100 days: in cartoons The tycoon's ascension to the White House came at a time when the balance of power is shifting away from Western nations like those in the G7 group Donald Trump's first 100 days: in cartoons Western politicians, including the British Conservative party, have been accused of falling in line behind Mr Trump's proposals Donald Trump's first 100 days: in cartoons Brexit is seen to have weakened Britain, reducing still further any political will to resist American leadership Donald Trump's first 100 days: in cartoons Mr Trump's leadership has been marked by sudden and unexpected shifts in global policy Donald Trump's first 100 days: in cartoons Trump's controversial missile strike on Syria, which killed several citizens, was seen by some analysts as an attempt to distract from his policy elsewhere Donald Trump's first 100 days: in cartoons The President has also spent a large majority of his weekends golfing, rather than attending to matters of state Donald Trump's first 100 days: in cartoons Though free of gaffes, a visit from Chinese president Xi Jinping spotlighted trade tensions between the two states Donald Trump's first 100 days: in cartoons One major and unexpected setback came when Mr Trump's Healthcare Bill was struck down by members of his own party Donald Trump's first 100 days: in cartoons Mr Trump has been a figure of fun in the media, with his approval at record lows Donald Trump's first 100 days: in cartoons A string of revelations about Mr Trump's financial indiscretions did not mar his surge to the White House Donald Trump's first 100 days: in cartoons Outgoing President Barack Obama was accused of wiretapping Trump Tower by his successor in America's highest office Donald Trump's first 100 days: in cartoons The alleged involvement of Russian intelligence operatives in securing Mr Trump the presidency prompted harsh criticism Donald Trump's first 100 days: in cartoons The explosive resignation of Security Adviser Michael Flynn, who lied about his links to the Russian ambassador, was just one scandal to hit the President Donald Trump's first 100 days: in cartoons Many scandals, such as the accusation Barack Obama was implicated in phone-hacking, first broke on Mr Trump's Twitter feed Donald Trump's first 100 days: in cartoons Donald Trump's election provoked mass protests in the UK, with millions signing a petition to ban him from the country Donald Trump's first 100 days: in cartoons Donald Trump cited a non-existent terror attack in Sweden during a campaign rally Donald Trump's first 100 days: in cartoons Donald Trump stands accused of stoking regional tensions in Eastern Asia Donald Trump's first 100 days: in cartoons North Korea has launched a number of failed nuclear tests since Mr Trump took power Donald Trump's first 100 days: in cartoons Theresa May formally rejected the petition calling for Mr Trump to be banned from the UK Donald Trump's first 100 days: in cartoons When Mr Trump's initial so-called Muslim ban was struck down by a federal justice, the President mocked the 69-year-old as a "ridiculous", "so-called judge" Donald Trump's first 100 days: in cartoons A week after his inauguration, Theresa May met with Mr Trump at the White House Donald Trump's first 100 days: in cartoons Donald Trump's first days in office were marked by a hasty attempt to follow through on many of his campaign promises, including the so-called Muslim ban Donald Trump's first 100 days: in cartoons Donald Trump's decision to ban citizens of many majority-Muslim countries from the US sparked mass protests Donald Trump's first 100 days: in cartoons Revelations about Donald Trump's sexual improprieties were not enough to keep him from being elected President Donald Trump's first 100 days: in cartoons British PM Theresa May was criticised by many in the press for cosying up to the new President Donald Trump's first 100 days: in cartoons One of Mr Trump's top aides, Kelly Anne Conway, was mocked for describing mistruths as "alternative facts" Donald Trump's first 100 days: in cartoons British PM Theresa May was quick to demonstrate that her political aims did not hugely differ from Mr Trump's Donald Trump's first 100 days: in cartoons Donald Trump's inauguration, on 20 January 2017, sparked protests both at home and abroad

The package includes $61 million to reimburse local law enforcement agencies for the cost of protecting Trump when he travels to his residences in Florida and New York, a major priority for the two New York Democrats involved in the spending talks, Schumer and Rep. Nita Lowey.

Among the bipartisan victories is $407 million in wildfire relief for western states and a decision to permanently extend a program that provides health-care coverage for coal miners.

"The agreement will move the needle forward on conservative priorities and will ensure that the essential functions of the federal government are maintained," said Jennifer Hing, a spokeswoman for House Appropriations Committee Chairman Rodney Frelinghuysen, R-N.J.

House Republicans have struggled in recent weeks to keep their members focused on spending as White House officials and conservatives pressed leaders to revive plans for a vote on health-care legislation. The health-care fight became tangled last week in spending talks as leaders worried that forcing a vote to repeal the Affordable Care Act risked angering Democrats whose votes are necessary to avoid a government shutdown.

Leaders worked last week to determine whether the House has enough votes to pass a revised health-care bill brokered by the White House, the head of the conservative House Freedom Caucus and a top member of the moderate Tuesday Group.

House Speaker Paul Ryan, R-Wis., and his top lieutenants announced Thursday that they did not have sufficient votes to be sure the measure would pass but vowed to press on.

"We're still educating members," House Majority Leader Kevin McCarthy, R-Calif., told reporters after a late-night health-care meeting last week. "We've been making great progress. As soon as we have the votes, we'll vote on it."

Author Information: