A federal judge in Buffalo has rejected a proposed class action accusing Just Energy New York Corp. of gaming deregulation in the energy market to charge customers exorbitant electricity rates.