The GOP argued a Wyoming law infringes on its freedom of association. A district court judge ruled otherwise.