Obama signs defense, budget bills into law