The New York City comptroller, Mark Levine, said that poor budgeting practices by the previous mayor, Eric Adams, had left the city with looming deficits.