Poland's Senate has approved a controversial bill making it illegal to accuse the Polish nation or state of complicity in the Nazi Holocaust.

The bill amendment, which sets fines or a maximum three-year jail term as punishment, must be signed off by the president before entering into law.

President Andrzej Duda says Poland has the right "to defend historical truth".

But it has outraged Israeli MPs who are now seeking to strengthen their own Holocaust denial laws.

What does the amendment state?

It says that "anyone, against the facts, that publicly states that the Polish nation or state was responsible or co-responsible for Third Reich crimes... is punishable by up to three years in prison".

But it adds the caveat that: "No offence is committed if the criminal act... is committed in the course of the one's artistic or academic activity."

It passed in a late-night sitting of the upper house of the Polish parliament with 57 votes to 23, with two abstaining.

The country has long objected to the use of phrases like "Polish death camps", which suggest the Polish state in some way shared responsibility for camps such as Auschwitz. The camps were built and operated by the Nazis after they invaded the country in 1939.

But the more contentious point raised by the bill is whether it will outlaw references to acts of individual complicity by Poles with the Nazis - something historians say there is clear evidence for.

What has been the Israeli reaction?

The Israelis are furious about the bill, which Prime Minister Benjamin Netanyahu has described as an attempt to rewrite history and deny the Holocaust.

There was particular anger as it came just a few days after the Polish president promised to engage in dialogue with Israel about the bill amid the outcry.

Deputies from across Israel's often fractious political spectrum have united to denounce it.

Opposition MP Tzipi Livni of the Zionist Union party - normally a staunch critic of Mr Netanyahu - said: "They have spat in Israel's face twice, firstly as the state of the Jewish people that is trying to prevent a second Holocaust, and secondly in the face of an Israeli prime minister who had reached an agreement with his Polish counterpart, and had it ignored."

Centrist MP Yair Lapin was also defiant, tweeting that the law could not change history.

Now, Israeli MPs are backing a bill that would expand Israel's existing Holocaust denial laws to include a five-year jail sentence for anyone denying or minimising the role of Nazi collaborators, including Poles, in crimes committed in the Holocaust.

The amended law would also give legal aid to any Holocaust survivor telling their story who is prosecuted in a foreign country.

The US state department had also urged the Polish government to rethink the bill.

What about in Poland?

Polish politicians have expressed bafflement at the Israeli response.

"We are very sad and surprised our fight for the truth, for the dignity of Poles, is perceived and interpreted in this way," said Senate speaker Stanislaw Karczweski.

Deputy Justice Minister Marcin Warchol said it was wrong to suggest the bill would stop people researching Polish history.

"Poland is a democratic state of law which respects the freedom of public debate, scientific research, and the right to criticism," he said.

Poland is governed by a nationalist party, Law and Justice (PiS), which is keen to show the world how Poland was ruthlessly victimised by its German and Soviet neighbours in the war.

Media reaction to the law has been much more ambivalent. "Instead of settling the crisis, we have made it even worse," said a columnist in the conservative daily Rzeczpospolita.

About 100 Polish artists, politicians and journalists have signed an open letter calling for the repeal of the bill, saying it goes too far in trying to make Poland "the only blameless nation in Europe".