A federal judge ruled against a group of New York event venues on Friday in their lawsuit against a state ban on nonessential gatherings of more than 50 people.