Bill Weld, the former federal prosecutor and two-term Massachusetts governor, is back at a top Boston firm after taking a leave of absence to run against President Donald Trump.