A judge has dismissed Eaton Corp.’s $1 billion trade secrets suit against a rival, saying a once-prominent attorney worked on Eaton’s behalf to influence a former judge in the case.