President Donald Trump will need to sign the spending package after the House of Representatives approved it.