Trump signs two-day spending bill, narrowly avoiding federal shutdown