The First Minister also vowed investment to boost housing and declining populations in Scotland’s remote communities.