The flagship plans to adjust contracts and restrict hiring as it grapples with rising costs, declines in federal research funding and other challenges.