Republican presidential candidate Donald Trump has branded Scottish lawmakers "small minded" after failing to win an appeal to stop wind farms being built near his golf resort in the country.

Judges at the U.K.'s Supreme Court voted unanimously on Wednesday to reject Trump's bid after a proposal in 2011 to build 11 offshore wind turbines. The construction is due to be located about 3.5 kilometers from his golf resort in Balmedie, Aberdeenshire, Scotland.

"History will judge those involved unfavorably and the outcome demonstrates the foolish, small minded and parochial mentality which dominates the current Scottish government's dangerous experiment with wind energy," a statement from the Trump Organization said.

Trump had challenged the building plans, claiming it would spoil the view from his resort. Lawmakers became embroiled in the dispute when Scottish ministers granted consent for the development in March 2013 and there have now been three successive court judgments.

The Trump Organization has signaled that it will continue to fight the proposals.

Trump's comments add to the animosity felt by the U.S. business magnate whose mother is from Stornoway on the Scottish Isle of Lewis.

Last week, Trump slammed the country's First Minister Nicola Sturgeon after the government dropped him as business ambassador for the country following his call to temporarily ban foreign Muslims from the United States in the wake of the San Bernardino terrorist massacre..

"The U.K. politicians should be thanking me instead of pandering to political correctness," Trump said, according to the Financial Times. "I have done so much for Scotland."

War of words

Former Scottish First Minister Alex Salmond, who was Trump's real adversary when the dispute began, taunted the Republican front-runner after the decision calling him "three times a loser."

"(Trump) has at best postponed, and at worst jeopardized, a vital £200 million boost for the economy of the north east of Scotland. The offshore project could have been built by now," Salmond said in statement.

He also went on to add that his "behavior and comments are unlikely to attract the votes of many Mexican-Americans or Muslim-Americans."

"Given his treatment of Scotland, Scots American(s) are likely to join the ever growing list of people alienated by Trump," he added.

Salmond's words hit a nerve with the American, who immediately responded by rebutting claims that the golf resort was underperforming.

"(Salmond) should go back to doing what he does best — unveiling pompous portraits of himself that pander to his already overinflated ego," the statement said.