He defended provisions that critics have denounced as pork-barrel spending , and he lobbied for the restoration of education funds that were cut in a compromise Senate version crafted last week to attract a handful of needed Republican votes .