I can almost guarantee that when you read the ordinance you will find that it prohibits inoperable vehicles on private property, not just unregistered or abandoned vehicles. And from your description, the vehicle was certainly inoperable.
As for what you do with your mechanic, sure, you can sue him in small claims court but he's a low life druggie and you'll never collect even if you win.
Life lesson from the school of hard knocks.