US president signs budget bill, averts government shutdown