The Defense Department is ending its relationships with several Ivy League universities and think tanks that service members are permitted to attend.