Facing the potential loss of hundreds of millions of dollars in federal funding, Duke University is preparing for the worst.