A judge has granted bail to a former member of Massachusetts Gov. Maura Healey’s office, weeks after he was charged with cocaine trafficking, prosecutors announced.