U.S. real-estate investor Donald Trump’s legal challenge against a wind farm off the coast of Aberdeenshire was rejected by a Scottish judge.