Trump signs $1.4 trillion spending deal