* Juncker will recommend that EU leaders approve deal
* Northern Ireland’s DUP says won’t accept the deal
* Opposition Labour Party also vows to reject agreement
* Ball now back in British parliament court after deal in Brussels
By Elizabeth Piper and John Chalmers
BRUSSELS, Oct 17 (Reuters) - Britain clinched an eleventh-hour Brexit deal with the EU on Thursday, more than three years after Britons voted in a referendum to leave the bloc, but Prime Minister Boris Johnson still faces a knife-edge vote in parliament to get it approved.
“Where there is a will there is a deal - we have one! It’s a fair and balanced agreement for the EU and the UK and it is a testament to our commitment to find solutions,” European Commission President Jean-Claude Juncker said in a tweet a few hours before the start of an EU summit in Brussels.
He said he would recommend that leaders of the other 27 member states approve the deal.
“I believe it is high time to complete the divorce process and move on, as swiftly as possible, to the negotiation on the European Union’s future partnership with the United Kingdom,” Juncker said in a letter.
Johnson, who was due to meet the 27 at the summit later on Thursday, declared: “we have a great new Brexit deal”.
He is hoping to get approval for the agreement in a vote at an extraordinary session of the British parliament on Saturday, to pave the way for an orderly departure on Oct. 31.
However, the Northern Irish party that Johnson needs to help ratify any agreement has refused to support the deal that was hammered out over weeks of negotiations.
The head of the main opposition Labour Party, Jeremy Corbyn, said in Brussels he was “unhappy” with the deal and would vote against it. Lawmakers in his party said they had been told to vote for another referendum on Saturday.
Negotiators worked frantically this week to agree a draft compromise on the question of the Irish border, the most difficult part of Brexit, haggling over everything from customs checks to the thorny issue of consent from the Northern Irish administration.
The conundrum was how to prevent the frontier becoming a backdoor into the EU’s single market without erecting checkpoints that could undermine the 1998 Good Friday Agreement, which ended decades of conflict in the province.
The agreement reached will keep Northern Ireland in the UK customs area but tariffs will apply on goods crossing from mainland Britain to Northern Ireland if they are deemed to be headed further, to Ireland and the bloc’s single market.
The agreement scraps the “backstop”, a mechanism envisaged earlier that was designed to prevent a hard border being introduced on the island of Ireland, and would have bound Britain to some EU rules. The EU had long insisted that the backstop could not be removed.
However, the Democratic Unionist Party (DUP), which supports Johnson’s government, said the new text was not acceptable - a step that could spur hardline Brexiteers in his Conservative party also to oppose ratification absent additional changes.
“These proposals are not, in our view, beneficial to the economic wellbeing of Northern Ireland and they undermine the integrity of the union,” the party said, warning that a parliamentary vote on Saturday was just the first stage in approving the deal.
Johnson has no majority in the 650-seat parliament, and in practice needs at least 318 votes to get a deal ratified at what will be the first Saturday session since the Argentine invasion of the Falkland Islands in 1982. The DUP have 10 votes.
The British parliament defeated similar deals struck by Johnson’s predecessor, Theresa May, three times.
“The ball again is in the British parliament’s court ... I hope it goes through this time,” Finnish Prime Minister Antti Rinne said in Brussels. “I hope we are now at the end of this process. But there are still many doubts - for instance, inside the British parliament.”
Johnson won the top job by pledging to renegotiate May’s agreement, though he is reviving the bulk of it now, with changes to the protocol on how to treat the border between EU member Ireland and the British province of Northern Ireland.
The uncertainty over parliament’s approval means that, two weeks before the latest date for the United Kingdom’s departure from the world’s largest trading bloc, the possible outcomes still range from an orderly departure to a chaotic exit or even another referendum that could reverse the entire endeavour.
It is unclear what Brexit will ultimately mean for the United Kingdom and the European project - built on the ruins of World War Two as a way to integrate economic power and thus end centuries of European bloodshed.
Johnson, who was the face of the campaign to leave the EU in Britain’s 2016 referendum, has repeatedly said he will not ask for a delay - even though parliament has passed a law to oblige him to do just that if it has not agreed and ratified a deal by Saturday.
Additional reporting by Gabriela Baczynska, Marine Strauss Phil Blenkinsop, Jonas Ekblom, Michel Rose and Robin Emmott Writing by John Chalmers Editing by Giles Elgood