My thought exactly. And I'm speaking from eight years of experience with a night job on a hotel desk.
I think comping the meals is going a bit far. Should this get to a lawsuit, I would expect the meals to be thrown out. But depending on details we do not have, I don't think the hotel charging the OP for the comped rooms is completely off the table.
And there's nothing whatsoever illegal about the hotel making the attempt.