Four retiring senators secured more than $1.7 billion in funding for pet projects and initiatives through earmarks in the $1.7 trillion spending bill.