In his controversial memoir, published in January 2023, Prince Harry wrote that he first tried cocaine at the age of 17.
“It wasn’t much fun, and it didn’t make me particularly happy, as it seemed to make everyone around me, but it did make me feel different, and that was the main goal,” he added.
He also wrote about using marijuana, saying “cocaine didn’t do anything for me”, but “marijuana is different, that actually really did help me”.
The court’s decision that the files be released came after a 2024 ruling which said there was not enough public interest in disclosing Prince Harry’s immigration records.
The Heritage Foundation contested that ruling and pushed for the judgement to be changed.
Prince Harry moved to the US with his wife Meghan in 2020 after stepping down as a working royal. It is not clear what visa he entered the country on, while the duchess is a US citizen.
President Donald Trump previously ruled out deporting Prince Harry in February, telling the New York Post: “I’ll leave him alone… He’s got enough problems with his wife. She’s terrible.”
Meghan has been a vocal critic of Trump in the past, labelling him a “misogynist”.
The BBC has contacted the duke’s office for comment.