Anas Sarwar said his party would be willing to work with Donald Trump for the benefit of Scotland.