Assistant U.S. Attorney Leah Belaire Foley was sworn in Tuesday as the new U.S. Attorney for the District of Massachusetts.