Logical fallacy
Moral licensing
Treats an earlier good deed or sacrifice as permission to violate a rule that still applies. The argument offers moral credit in place of a justification relevant to the later act.
Examples
I volunteered all summer, so I am entitled to take a neighbor’s parking space without asking.
We have sponsored several local teams. That excuses leaving the repair charges out of this invoice.
A similar case that can be sound
The published rules award a free parking voucher after ten volunteer shifts. She earned the voucher this month.