Federal agents emerge from courthouse, fire tear gas