Spending plans aim to battle national deficit yet still invest in research.