The Pentagon is fighting a court ruling that lifted a ban on potential recruits with controlled HIV from joining the military.