Federal prosecutors’ indictment of the Massachusetts judge, Shelley M. Richmond Joseph, and a court officer was sharply criticized by the state’s attorney general, Maura Healey.