The veteran prosecutor and former FBI chief who investigated Donald Trump has passed away after a long illness.