The Department of Homeland Security has been ordered by a federal judge to release Prince Harry's immigration records under the Freedom of Information Act (FOIA).