The Massachusetts unemployment rate stayed at 3 percent in June, below the 3.7 percent at the national level.