An SNP MSP has accused the Scottish Government of “appalling” actions over the Supreme Court’s single-sex spaces ruling.