JERUSALEM >> Israeli lawmakers passed two laws on Monday that could threaten the work of the main U.N. agency providing aid to people in Gaza by barring it from operating on Israeli soil, severing ties with it and labeling it a terror organization.

The laws, which do not immediately go into effect, signal a new low for a long-troubled relationship between Israel and the U.N. Israel’s international allies said they were deeply worried about their potential impact on Palestinians as the Gaza war’s humanitarian toll worsens.

Under the first law, the U.N. agency for Palestinian refugees, or UNRWA, would be banned from conducting “any activity” or providing any service inside Israel. The second law would sever Israel’s diplomatic ties with the agency.

The laws risk collapsing the fragile process for distributing aid in Gaza at a moment when Israel is under increased U.S. pressure to ramp up aid. UNRWA’s chief called them “a dangerous precedent.”

Israel has alleged that some of UNRWA’s thousands of staff members participated in the Hamas attacks last year that sparked the war in Gaza. It also has said hundreds of UNRWA staff have militant ties and that it has found Hamas military assets in or under the agency’s facilities.

The agency fired nine employees after an investigation but denied it aids armed groups and said it acts quickly to purge any suspected militants from its ranks. Some of Israel’s allegations prompted major international donors to cut funding to the agency, although some of it has been restored.

Israel has at times during the war raided or attacked UNRWA schools or other facilities, saying militants were operating there. UNRWA says that more than 200 of its employees have been killed during the war.

“The law that we passed now is not just another bill. It is a call for justice and a wake up call,” said lawmaker Boaz Bismuth, who co-sponsored one of the bills. “UNRWA is not an aid agency for refugees. It is an aid agency for Hamas.”

The head of UNRWA, Philippe Lazzarini, said the new laws were part of an “ongoing campaign to discredit UNRWA.”

“These bills will only deepen the suffering of Palestinians, especially in Gaza,” he said on the social platform X.

The first vote followed a debate between supporters of the law and its opponents, mostly members of Arab parliamentary parties.

An English language account on X for Israeli Prime Minister Benjamin Netanyahu said Israel was ready to work with international partners to ensure it “continues to facilitate humanitarian aid to civilians in Gaza.” The post did not say how, and it was not clear how the flow of aid would be affected once these bills take effect.

Together, the laws would effectively sever ties with the U.N. agency, strip it of legal immunities and restrict its ability to support Palestinians in east Jerusalem and the West Bank. The legislation does not include provisions for alternative organizations to oversee its work.