Republicans in the US Senate have defeated a bipartisan effort to bolster border security that had taken months to negotiate, but said they could still approve aid for Ukraine and Israel that had been tied up in the deal.
By a vote of 49-50, the Senate failed to approve a $118 billion (€109 billion) bipartisan package that would tighten immigration laws, help Ukraine fight a Russian invasion and bolster Israel in its war with Hamas.
The measure needed 60 votes to advance in the chamber, which Democrats control by a 51-49 margin.
Chuck Schumer, leader of the Democratic-led Senate, said he would quickly forced a second vote to approve the foreign aid without the immigration curbs.
The Senate is expected to later vote on the $96 billion (€89 billion) package that strips out the immigration provisions but leaves the foreign aid intact.
For months, Republicans have insisted that any additional aid to the two US allies must also address the high numbers of migrants arriving at the US-Mexico border - a top voter concern.
But many Republicans promptly rejected the package when it was released on Sunday, even though it contained many of their priorities.

Former US president Donald Trump has pressed them to reject any compromise as he campaigns to defeat Democratic President Joe Biden in the November election.
"Some have been very clear with me they have political differences with the bill," said Republican Senator James Lankford, one of the negotiators.
"They say it's the wrong time to solve the problem, let the presidential election solve the problem," he said.
Independent Senator Kyrsten Sinema, another one of the deal's authors, said she was baffled by the sudden shift in fortune.
"Three weeks ago, everyone wanted to solve the border crisis," she said. "Yesterday, nobody did."
Still, the defeat of the bill left open the possibility that Congress could yet provide much-needed aid to US allies.
An aide to Republican Senator Roger Wicker predicted that a foreign-aid package would get well over 60 votes in the 100-seat chamber - a rare show of cross-party support.
Even if it passes, that aid faces uncertain prospects in the House of Representatives, as Republicans who control that chamber have balked at further support for Ukraine.
"We'll see what the Senate does. We're allowing the process to play out," House Speaker Mike Johnson told reporters.
Mr Johnson had said the border package would be "dead on arrival" in his chamber.
Concerns over immigration have become a top issue in this year's election campaign, and Mr Biden has blamed Mr Trump for the deal's collapse.
Mr Johnson, meanwhile, said today that he will hold another vote to impeach Mr Biden's top border official, Homeland Security Secretary Alejandro Mayorkas, after a first attempt failed in a 214-216 vote yesterday.
"It was a mess what happened here, but we're cleaning it up," he told reporters today.