First Minister John Swinney asked parliament to formally request the transfer of powers from the UK government to Scotland.