Suburban Republican lawmakers split over the plan to send money to the Department of Homeland Security for another year, while all suburban Democrats voted for it.
U.S. Reps. Randy Hultgren of Plano and Peter Roskam of Wheaton were the two local lawmakers who voted against the bill.
Hultgren said the proposal "abandoned" the House's previous Homeland Security plan, which would have worked to block President Barack Obama's executive moves on immigration.
"My constituents have told me repeatedly that, whatever the issue, they do not support the president acting outside of his authority and going around the American people and their representatives in Congress," Hultgren said.
U.S. Rep. Bob Dold, a Kenilworth Republican, voted for the plan. All suburban Democrats also voted for it.
Last week, Congress narrowly avoided a shutdown in the department after the House and Senate clashed over how to move forward.
At the time, U.S. Sen. Mark Kirk, a Highland Park Republican, said: "We really, as a governing party, we've got to fund DHS and say to the House, 'Here's a straw so you can suck it up.'"
In the end, the House approved the Senate's version, sending the plan to Obama for his signature.