The U.S. military will no longer be able to limit active service members who test positive for HIV, a federal judge in Virginia has ruled.