House approves $1.7 trillion federal spending bill