How the U.S. government came to rely on the tech billionaireā€”and is now struggling to rein him in.