The Northern Ireland secretary has been accused of using the peace process as a “bargaining tool”, after linking a £300m grant to the passing of Theresa May’s Brexit deal.

Labour said the suggestion the money could be lost if MPs inflicted a defeat was proof that Karen Bradley would “do anything to push through the prime minister’s botched deal”.

“As Northern Ireland secretary, she should be ashamed,” said Labour MP Tony Lloyd, her shadow.

“She needs to publicly guarantee funding for the peace process irrespective of the PM’s deal and apologise for such reckless and damaging comments.”

The controversy blew up after Ms Bradley announced a £300m package to support peace in Northern Ireland, including £109m from the EU, up to 2027.

Called PEACE Plus, the programme is the post-Brexit successor to a cross-border peace-building initiative that started in 1995.

However, in a newspaper article, Ms Bradley wrote that the “funding flows from our joint commitment within the EU in the withdrawal agreement”.

“It is a clear example of the certainty that the withdrawal agreement provides to the people of Northern Ireland and why it should be supported,” she said.

Current PEACE funding is only guaranteed until 2020, suggesting the future package was in jeopardy if MPs throw out the prime minister’s deal in next Tuesday’s showdown vote.

Police separate clashing Brexit protesters outside Parliament Show all 11 1 /11 Police separate clashing Brexit protesters outside Parliament Police separate clashing Brexit protesters outside Parliament Anti-Brexit protester Steve Bray (left) and a pro-Brexit protester argue as they demonstrate outside the Houses of Parliament Getty Images Police separate clashing Brexit protesters outside Parliament A pro-Brexit protester argues Getty Images Police separate clashing Brexit protesters outside Parliament Police surround the pro-Brexit protester after he confronted Steve Bray, a pro-European protester Getty Images Police separate clashing Brexit protesters outside Parliament A leave supporter is spoken to by a police officer as he argues with a remain supporter, Steve Bray, outside Parliament PA Police separate clashing Brexit protesters outside Parliament MPs in Parliament are to vote on Theresa May's Brexit deal next week after her December vote was called off in the face of a major defeat Getty Images Police separate clashing Brexit protesters outside Parliament A leave supporter is spoken to by a police officer PA Police separate clashing Brexit protesters outside Parliament Police look on as anti-Brexit protesters demonstrate outside the Houses of Parliament. Getty Images Police separate clashing Brexit protesters outside Parliament Police hold back a leave supporter PA Police separate clashing Brexit protesters outside Parliament A police officer speaks with anti-Brexit protester Steve Bray Getty Images Police separate clashing Brexit protesters outside Parliament Police surround a pro-Brexit protester after he confronted a pro-European protester Getty Images Police separate clashing Brexit protesters outside Parliament Conservative MP David Davies, wearing a gopro camera, speaks to anti-Brexit protester Steve Bray Getty Images

Asked if that was the case, Mr Bradley told reporters: “The legal basis upon which this can be delivered is the withdrawal agreement.

“It is set out in there and, if we leave the European Union without a deal, we will have difficulties in finding a way that the EU and Irish government can spend money jointly with the UK government in Northern Ireland on these important projects.”

She added: “As a government, to spend public money you need to have a legal basis to do so. The withdrawal agreement sets that out. That’s why we should vote for the withdrawal agreement on Tuesday in the House of Commons.”

Mr Lloyd said: “Karen Bradley is showing that she will do anything to push through the prime minister’s botched deal.

“She is willing to use the peace process in Northern Ireland as leverage and some kind of bargaining tool.”

The row comes after the Democratic Unionist Party, which has 10 MPs, rejected Ms May’s plea to rethink its determination to vote against the deal on Tuesday.

Because Sinn Fein refuses to take its seats at Westminster, no other Northern Ireland party will have a vote – despite polls suggesting strong public support for the controversial Irish border backstop.