A federal judge hesitated Friday to restrain the Trump administration from taking over the District of Columbia Metropolitan Police Department, successfully urging the city and government attorneys to iron out an agreement instead to divert the court’s immediate intervention.