Trump vows emergency declaration over wall, agrees to shutdown-averting bill