Logical fallacy
Special pleading
A general rule or standard is selectively relaxed for a favored case without a relevant justification. Similar cases are judged by different standards solely to protect the desired result.
Examples
Every applicant must give a reference. We will exempt my cousin solely because I want him to get the job.
All teams lose points for missing deadlines. The same missed deadline is harmless when it is our team.