At a news conference in City Hall, Mr. Bloomberg acknowledged that the practice had existed for years. But he said the city's lawsuit, filed in Federal District Court in Brooklyn, would not have been necessary if the state had been enforcing the law