The city is seeking a court order to remediate the hazardous conditions, which threaten neighboring residents and others