US House passes tax and spending bill by single vote