James Boasberg, who leads Washington’s federal trial court, is no stranger to clashes with the administration.