Scotland's First Minister said he has "enormous respect" for Ireland and the "journey that Ireland has taken in the use of its independence".