High Court judge Paul McDermott dismissed the appeals brought by three campaigners, who were concerned about the environmental impact of the project, which is to occupy almost 166,000 square meters in County Galway, west Ireland.
But two local residents went to the courts where they were granted a judicial review of the board's decision.
When the project was announced, Apple said it meant to spend €1.7 billion (£1.5 billion) on a data centre in Ireland and another in Denmark, with each one costing €850 million (£762 million). 150 technical staff are to be employed once the facility is put to work.
Among their arguments was that the planning permission was invalid because the board failed to carry out a proper environmental impact assessment of the proposed development.
Apple did not immediately respond to Business Insider's request for comment.
Garry Connolly, Founder and President, Host in Ireland, told Data Economy: "We are delighted that the planning process has had a successful outcome for the Apple Data Hosting Centre in Galway".
The Irish government is said to be considering making changes to its planning laws and processes in the wake of the case to prevent other would-be datacentre investors from having their plans kicked into the long grass as Apple has.
One in every 10 jobs in Ireland is created by foreign multinational companies like Apple, Reuters noted. That appeal was delayed not once but twice, leading some to lose hope that the project would ever proceed.
However, the fear Apple could indeed pull the plug on the development was taken serious by local residents in favour of the data centre, with many referring to Apple's announcement in October 2016 that it would build a large $950m data centre in Denmark. Irish Prime Minister Leo Varadkar held talks with Apple executives last month, who warned the delay could influence future investment decisions. The Apple Athenry case is a very good example of a planning system that in its current form is dysfunctional and can too easily be exploited.