The Massachusetts economy, spurred by business spending on technology, grew faster than the nation’s through the first half of this year, continuing a yearlong trend of strong growth.