LONDON — Britain’s highest court unanimously rejected on Wednesday an attempt by Donald J. Trump, the real estate developer and Republican presidential candidate, to block the construction of a wind farm near his luxury golf resort in northeast Scotland.

The ruling is the latest impediment for the resort, known as Trump International Golf Links, which opened in 2012 near Balmedie, a few miles north of Aberdeen.

Mr. Trump has vowed to stop further development on the project if the offshore wind farm — 11 turbines, which would be visible from the golf resort 2.2 miles away — goes forward.

In a 27-page ruling, the Supreme Court of the United Kingdom rejected an argument by Mr. Trump’s lawyers that the wind farm had been improperly approved by Scottish officials in March 2013 because it did not comply with a 1989 law and because there was a problem with the planning application.