Trump has regularly criticised Wray for role in probes into former president and was widely expected to fire him.