Investors burned by President Trump’s trade fight now have to contend with a spending megabill that risks swelling the federal deficit.