Tasmania's Supreme Court has quashed a decision that would have forced a museum to allow men to enter its women's only "Ladies Lounge".