The Republican-controlled House of Representatives has voted to pass a budget deal to avert what would be the first US federal government shut down since 2019 .