Judge dismisses lawsuit challenging Wis. union law