US president signs defense spending bill into law