New York City on Tuesday filed an $8.5 million lawsuit against a biodiesel vendor, arguing that the company violated its contract with the city by failing to pass along a biofuels tax credit.