A Brooklyn judge has halted the city’s plans to tear up three blocks of a protected bike lane — and ordered city lawyers to return later this summer to persuade her that they weren’t acting “arbitrarily, capriciously, and illegally” in ordering the hasty removal.