US presidential candidate Donald Trump has responded after First Minister John Swinney endorsed his Democratic rival Kamala Harris, calling the move "appalling".