The SNP has compared its fight for Scottish independence with the American Revolution, which went on to create “one of the most powerful nations in the world”.