How did federal policies undertaken during the civil war transform the united states into a stronger nation-state���economically, politically, and ideologically?