How did Memorial Day become a national holiday?

It became a memorial day in 1868!