The Scottish government is being challenged in court by the campaign group For Women Scotland.