Robert F. Kennedy Jr. didn't violate New Jersey's "sore loser" law, a judge ruled on Tuesday, potentially clearing the way for Kennedy to appear on the presidential ballot as an independent.