Obama signs bill for defense, jobless benefits