Leah Foley, a 23-year federal prosecutor, was elevated to the top federal law enforcement post for the state of Massachusetts as the President Trump administration took power.