President signs spending bill