Hungary could be ordered to pay fines if it fails to take its quota of 1,294 people, though enforcement might require the European Commission, the bloc's administrative arm, to bring its own court case.
In response to the migration crisis that affected Europe in the summer of 2015, the Council of the European Union adopted a decision for the relocation from those two member states to other EU states, over a period of two years, of just 120,000 persons in clear need of global protection.
"Politics has raped European law and values", Hungarian foreign minister Peter Szijjarto said after the European Court of Justice in Luxembourg ruled that the refugee relocation scheme "actually contributes to enabling Greece and Italy to deal with the impact of the 2015 migration crisis and is proportionate".
The European Union approved the controversial scheme two years ago as it grappled with Europe's worst migrant crisis since World War II, but Hungary and Slovakia went to court to block the plan, backed by other eastern member states. However, at the moment were allocated only about 25 thousand people.
Hungary, Poland and the Czech Republic are already facing... Almost 80 percent arrived in Italy, with the rest divided among Greece, Cyprus and Spain.
In Bratislava, Slovak Prime Minister Robert Fico said his government "fully respects the court's decision" as it wants to remain at the "EU's core" but nevertheless called quotas "politically wrong". He said it jeopardizes the security and future of Europe.
Avramopoulos said if they fail to act soon, the Commission should consider taking "the last step in the infringement procedure, to refer Poland, Hungary and the Czech Republic to the European Court of Justice".
Court rejects Hungary, Slovakia migrant relocation case
Amnesty International welcomed the court's decision.
"Now we can expect all European partners to stick to the ruling and implement the agreements without delay", German foreign minister Sigmar Gabriel said in a statement.
"ECJ confirms relocation scheme valid". The government of Hungarian Prime Minister Viktor Orban has taken the stance that Hungary has the right to refuse entry to the primarily Muslim asylum seekers and refugees, claiming they threaten the country's cultural identity.
Slovakia has accepted about 16 refugees as of July 2017.
EU Migration Commissioner Dimitris Avramopoulos said on Wednesday that arrangement "continues to work and deliver results", the AP reports.
Brussels launched the relocation scheme in September 2015, the year more than one million migrants arrived in Europe by sea.
Spurs have bid accepted for Fernando Llorente
The Spain striker joined Swansea from Sevilla in August, 2016, and scored 15 goals in 33 Premier League appearances last season. The Blues appeared in pole position to land Llorente in a £15million deal, but will not face late competition from Spurs .