Logical fallacy
Appeal to consequences
A factual claim is accepted or rejected because its being true would produce welcome or unwelcome implications. The desirability of those implications does not establish the truth of the claim.
Examples
If the figures were right we would have to close the project, so they must be wrong.
It would be nice if the message were authentic, so it is authentic.