WASHINGTON—President Donald Trump claimed Monday that the investigation by special counsel Robert Mueller is “totally unconstitutional” and asserted that he had the “absolute right” to pardon himself, citing “numerous legal experts.”

The president added, in a pair of tweets, “but why would I do that when I have done nothing wrong?”

The U.S....