how did lincoln preserve the union