WASHINGTON  President Trump showed an affinity for “working the referees” in his race to the White House, criticizing a federal judge as biased, panning polls as rigged and even questioning the aptitude of the nation’s intelligence agencies.