A US judge ordered the prince's immigration record to be made public after a think tank alleged he lied about past drug use.