John Swinney has been slated for reheating plans for a misogyny law previously abandoned by his justice secretary.