America’s top infectious diseases expert had a tortuous relationship with Trump and was increasingly sidelined