New York City officials have dismissed or refunded half a million parking tickets because of an error.