The president had clashed repeatedly with the former chair of the Federal Reserve, launching personal attacks.