Donald Trump appeared at the Scottish Parliament’s green energy targets inquiry