Preparations to close government agencies called off as president set to sign new legislation