Trump signs stopgap spending bill to keep government open