Though the agreement resulted in Mr. Castle and others deciding to support the budget , 12 Republicans voted against it , including some lawmakers in difficult re-election fights , like Representatives Heather A. Wilson of New Mexico and Jim Gerlach of Pennsylvania .