White House spokesman Raj Shah during the 2016 election called President Trump Donald John TrumpHR McMaster says president's policy to withdraw troops from Afghanistan is 'unwise' Cast of 'Parks and Rec' reunite for virtual town hall to address Wisconsin voters Biden says Trump should step down over coronavirus response MORE “a deplorable” and the release of the infamous “Access Hollywood” tape “some justice," according to messages obtained by New York magazine.

Shah, who has become a visible figure in the White House press office, made the remarks while working at the Republican National Committee.

“U wanna hear something a little f---ed up?” Shah wrote in an email to another RNC staffer just hours after the “Access Hollywood” tape emerged in October 2016.

ADVERTISEMENT

“I’m kinda enjoying this, some justice. I honestly don’t think it’s the worst thing he’s done but he somehow got passes for the other acts,” Shah wrote.

Trump was heard describing groping and kissing women without their consent in the 2005 tape.

"When you're a star, they let you do it," Trump is heard saying on the tape. "You can do anything."

He apologized for the remarks after The Washington Post uncovered the hot-mic recording, calling them “locker room” talk.

Shah also said that "Trump is a deplorable" in the email.

Trump supporters began to use the word “deplorable” to describe themselves after Hillary Clinton Hillary Diane Rodham ClintonHillicon Valley: FBI chief says Russia is trying to interfere in election to undermine Biden | Treasury Dept. sanctions Iranian government-backed hackers The Hill's Campaign Report: Arizona shifts towards Biden | Biden prepares for drive-in town hall | New Biden ad targets Latino voters FBI chief says Russia is trying to interfere in election to undermine Biden MORE used the phrase “basket of deplorables” to describe many of those who backed Trump. The Trump campaign also used the quote against Clinton.

Shah, a deputy press secretary in the White House, declined to comment to the magazine for the story. A senior White House official told New York that Shah had already informed higher-ranking officials about his past comments.

White House communications director Hope Hicks Hope Charlotte HicksSenate intel leaders said Trump associates may have presented misleading testimony during Russia probe: report Cuomo turned down Trump invitation to participate in April press briefing: report Trump shakes up White House communications team MORE said in a statement to New York that the White House has “always known” about Shah’s previous roles and that Shah has “tremendous respect” for Trump.

“Perhaps if the leakers trying to undermine him were as talented and smart as Raj, they would be here fighting for the American people every day, rather than trying desperately to remain relevant by spreading information that Raj himself shared many months ago,” Hicks said. “Raj’s skills as a press secretary are only surpassed by his stellar character.”

The magazine also noted that Shah left the RNC to work as the managing director of America Rising, a GOP-affiliated group that did not back a candidate in the 2016 primaries, but saw several staffers leave to work for the campaign of former Florida Gov. Jeb Bush.

Shah had rejoined the RNC in 2016, but later that year asked a senior RNC researcher for a clip of Trump praising former President Obama’s decision to name Clinton as secretary of State as “a great appointment.”

Shah warned the researcher against using official GOP email while discussing the footage. The researcher soon found the clip and sent it to Shah, according to New York. That clip appeared in a Bush campaign ad three days later.

—Updated at 10:10 a.m. Tuesday