Scottish First Minister John Swinney has tabled a motion urging Westminster to devolve powers to Holyrood for a second referendum.