Boston's status as a state capital as well as the regional home of federal agencies has rendered law and government to be another major component of the city's economy.