Washington (CNN) The Department of Homeland Security won't run out of money anytime soon.

The House cleared legislation Tuesday that will keep the agency operating through the end of September after a standoff last week threatened to shutter the agency and furlough thousands of workers. The 257-167 vote sends the bill to President Barack Obama for his signature.

Republican House Speaker John Boehner, who rarely casts votes, backed the bill, along with his top lieutenants. A majority of House Republicans opposed the bill. Just 75 GOP lawmakers joined with 182 Democrats to push it across the finish line.

The legislation does nothing to rein in Obama's immigration executive orders -- a top priority of conservatives. That issue was a sticking point for weeks as Republicans tried to tie DHS funding to the repeal of the orders but the party couldn't overcome Democratic filibusters in the Senate.

Read More