Judge Marsha Pechman of the U.S. District Court for the Western District of Washington issued a preliminary injunction, saying the city’s ordinance that punishes graffiti “targets speech” and “poses a real and substantial threat of censorship.”