A former US government adviser who flew to the UK to rape who he believed to be a nine-year-old child has been jailed, the Crown Prosecution Service (CPS) has said.