Obama Signs Spending Bill but Criticizes Earmarks