Members of Palestinian forces loyal to Hamas carry a model of the Dome of the Rock during a military parade in Gaza City July 26, 2017.
LUXEMBOURG - The European Union's top court on Wednesday upheld the bloc's decision to put Palestinian Islamist movement Hamas on its terrorism blacklist.
The European Court of Justice overturned a 2014 ruling by the bloc's second highest court, saying it "should not have annulled Hamas' retention on the European list of terrorist organisations".
Hamas, which controls the Gaza Strip, denounced the decision, which it said: "has no bearing on politics".
"We will keep up our legal battle to have Hamas removed from the list of terrorist organisations," a statement from the Islamists said.
The lower EU court sparked outrage in Israel and Washington when it said Hamas should be dropped from the list because the bloc had made the decision based on information from the media and the internet.
But the Luxembourg-based ECJ said that in doing so, the General Court had "made an error in law" and it would now have to examine the case again.
However, in a related ruling, the ECJ said Wednesday that the General Court's 2014 finding that Sri Lankan rebel group the Liberation Tigers of Tamil Eelam (LTTE) should not be on the terror list was correct.
The Hamas ruling came as a surprise since one of the ECJ's senior lawyers had said in an opinion last September that Hamas should not have been included on the terror list because procedural mistakes invalidated the EU decision.
The court rarely rules against the advice of its top lawyers and there had been concerns that if the ECJ agreed with the General Court, then already tense EU-Israel relations would have been hit again.
The European Jewish Congress (EJC) said it welcomed the outcome as "an important political message in the fight against international terror."
Israel regularly berates the European Union for being soft on terrorism and bluntly rejects EU criticism of its Jewish settlements policy.
The EU imposed travel bans and asset freezes on Hamas, which controls the Gaza Strip, after September 11, 2001, Al-Qaeda terror attacks on New York and Washington.
Hamas opposed the sanctions from the start, arguing that as a legally elected government it has the right to conduct military operations against Israel.
Hamas has controlled the Gaza Strip since 2007 and fought three wars with Israel, the last in 2014, which caused massive destruction and left more than 2,000 people dead.
The original 2014 ruling by the General Court annulled the EU sanctions listing on procedural grounds.
It said that rather than establishing independently that Hamas was a terrorist organisation, the European Council of EU member states had instead relied on publicly available information.
The EU member states then appealed that decision, believing the lower court "was wrong in its assessment of the way in which the Council relied on information in the public domain".
The EU maintains an active sanctions policy, targeting individuals, groups and states, including several other Palestinian entities.