Trump signs budget deal after raising government shutdown threat