US president signs short-term spending bill to avert government shutdown